From 09a509c8b51bfe46e00bb2b09ce4eeba8a792bd5 Mon Sep 17 00:00:00 2001 From: 0HyperCube <78500760+0HyperCube@users.noreply.github.com> Date: Wed, 23 Aug 2023 13:31:51 +0100 Subject: [PATCH] Preserve exposed state on copy (#1397) --- node-graph/graph-craft/src/document.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/node-graph/graph-craft/src/document.rs b/node-graph/graph-craft/src/document.rs index adffdb00..a40742f4 100644 --- a/node-graph/graph-craft/src/document.rs +++ b/node-graph/graph-craft/src/document.rs @@ -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");