diff --git a/node-graph/graph-craft/src/document.rs b/node-graph/graph-craft/src/document.rs index 6ef88e9992..59fae3a1c3 100644 --- a/node-graph/graph-craft/src/document.rs +++ b/node-graph/graph-craft/src/document.rs @@ -791,7 +791,12 @@ impl NodeNetwork { node.implementation = identity_node; // Connect layer node to the group below - node.inputs.drain(1..); + if node.inputs.len() > 1 { + node.inputs.drain(1..); + } else if node.inputs.is_empty() { + node.inputs.push(NodeInput::value(TaggedValue::None, false)); + } + node.call_argument = concrete!(()); self.nodes.insert(id, node); return;