Skip to content

Commit 35a0aa1

Browse files
committed
Fix demo artwork
1 parent f1e80d5 commit 35a0aa1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

editor/src/messages/portfolio/portfolio_message_handler.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,13 @@ impl MessageHandler<PortfolioMessage, PortfolioMessageData<'_>> for PortfolioMes
525525
.network_interface
526526
.set_input(&InputConnector::node(NodeId(0), 1), NodeInput::value(TaggedValue::String(label), false), &[*node_id]);
527527
}
528+
529+
// Upgrade construct layer implementation from https://github.com/GraphiteEditor/Graphite/pull/1946
530+
if reference == "Merge" {
531+
let node_definition = crate::messages::portfolio::document::node_graph::document_node_definitions::resolve_document_node_type(reference).unwrap();
532+
let new_merge_node = node_definition.default_node_template();
533+
document.network_interface.replace_implementation(node_id, &[], new_merge_node.document_node.implementation)
534+
}
528535
}
529536

530537
// TODO: Eventually remove this (probably starting late 2024)

0 commit comments

Comments
 (0)