Save the layouts, even when in the welcome screen (#916)

This commit is contained in:
0HyperCube
2022-12-27 13:24:18 -08:00
committed by Keavon Chambers
parent 694890642e
commit 36b2eff319
5 changed files with 65 additions and 69 deletions
@@ -638,7 +638,10 @@ impl MessageHandler<NodeGraphMessage, (&mut Document, &InputPreprocessorMessageH
node.inputs.extend(((node.inputs.len() - 1)..input_index).map(|_| NodeInput::Network));
}
node.inputs[input_index] = NodeInput::Value { tagged_value: value, exposed: false };
responses.push_back(DocumentMessage::NodeGraphFrameGenerate.into());
responses.push_back(PropertiesPanelMessage::ResendActiveProperties.into());
if node.name != "Imaginate" || input_index == 0 {
responses.push_back(DocumentMessage::NodeGraphFrameGenerate.into());
}
}
}
}