Skip to content

Commit

Permalink
Upgrade noise pattern node
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgerhant committed Jan 17, 2025
1 parent c1fc86e commit cffa490
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions editor/src/messages/portfolio/portfolio_message_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,12 @@ impl MessageHandler<PortfolioMessage, PortfolioMessageData<'_>> for PortfolioMes
.network_interface
.set_input(&InputConnector::node(NodeId(0), 1), NodeInput::value(TaggedValue::String(label), false), &[*node_id]);
}

if reference == "Noise Pattern" && inputs_count == 15 {
let node_definition = crate::messages::portfolio::document::node_graph::document_node_definitions::resolve_document_node_type(reference).unwrap();
let new_noise_pattern_node = node_definition.default_node_template();
document.network_interface.replace_implementation(node_id, &[], new_noise_pattern_node.document_node.implementation)
}
}

// TODO: Eventually remove this document upgrade code
Expand Down

0 comments on commit cffa490

Please sign in to comment.