mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-07-24 16:13:44 +00:00
Preserve exposed state on copy (#1397)
This commit is contained in:
parent
cc0192977d
commit
09a509c8b5
1 changed files with 4 additions and 1 deletions
|
@ -123,7 +123,10 @@ impl DocumentNode {
|
|||
output_index,
|
||||
lambda,
|
||||
};
|
||||
} else if let Some(new_input) = default_input(self.name.clone(), index) {
|
||||
} else if let Some(mut new_input) = default_input(self.name.clone(), index) {
|
||||
if let NodeInput::Value { exposed, .. } = &mut new_input {
|
||||
*exposed = true;
|
||||
}
|
||||
*input = new_input;
|
||||
} else {
|
||||
warn!("Node does not exist in library with that many inputs");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue