From c09af266d88e8f975cdd6f31458f03f9c49c4ac1 Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Wed, 22 Feb 2023 23:22:31 +0100 Subject: [PATCH] Fix default type for Identity node (#1051) --- .../node_graph_message_handler/document_node_types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/src/messages/portfolio/document/node_graph/node_graph_message_handler/document_node_types.rs b/editor/src/messages/portfolio/document/node_graph/node_graph_message_handler/document_node_types.rs index 1e9ede46..6930dfce 100644 --- a/editor/src/messages/portfolio/document/node_graph/node_graph_message_handler/document_node_types.rs +++ b/editor/src/messages/portfolio/document/node_graph/node_graph_message_handler/document_node_types.rs @@ -98,7 +98,7 @@ fn static_nodes() -> Vec { inputs: vec![DocumentInputType { name: "In", data_type: FrontendGraphDataType::General, - default: NodeInput::node(0, 0), + default: NodeInput::value(TaggedValue::None, true), }], outputs: vec![DocumentOutputType::new("Out", FrontendGraphDataType::General)], properties: |_document_node, _node_id, _context| node_properties::string_properties("The identity node simply returns the input"),