mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-23 15:38:13 +08:00
Preserve exposed state on copy (#1397)
This commit is contained in:
@@ -123,7 +123,10 @@ impl DocumentNode {
|
|||||||
output_index,
|
output_index,
|
||||||
lambda,
|
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;
|
*input = new_input;
|
||||||
} else {
|
} else {
|
||||||
warn!("Node does not exist in library with that many inputs");
|
warn!("Node does not exist in library with that many inputs");
|
||||||
|
|||||||
Reference in New Issue
Block a user