@@ -237,11 +237,25 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
237237 node_template: NodeTemplate {
238238 document_node: DocumentNode {
239239 implementation: DocumentNodeImplementation :: Network ( NodeNetwork {
240- exports: vec![ NodeInput :: node( NodeId ( 1 ) , 0 ) ] ,
240+ exports: vec![ NodeInput :: node( NodeId ( 3 ) , 0 ) ] ,
241241 nodes: [
242+ // Secondary (left) input type coercion
243+ DocumentNode {
244+ inputs: vec![ NodeInput :: network( generic!( T ) , 1 ) ] ,
245+ implementation: DocumentNodeImplementation :: proto( "graphene_core::graphic_element::ToElementNode" ) ,
246+ manual_composition: Some ( concrete!( Context ) ) ,
247+ ..Default :: default ( )
248+ } ,
249+ // Primary (bottom) input type coercion
250+ DocumentNode {
251+ inputs: vec![ NodeInput :: network( generic!( T ) , 0 ) ] ,
252+ implementation: DocumentNodeImplementation :: proto( "graphene_core::graphic_element::ToGroupNode" ) ,
253+ manual_composition: Some ( concrete!( Context ) ) ,
254+ ..Default :: default ( )
255+ } ,
242256 // The monitor node is used to display a thumbnail in the UI
243257 DocumentNode {
244- inputs: vec![ NodeInput :: network ( concrete! ( GraphicElement ) , 1 ) ] ,
258+ inputs: vec![ NodeInput :: node ( NodeId ( 0 ) , 0 ) ] ,
245259 implementation: DocumentNodeImplementation :: proto( "graphene_core::memo::MonitorNode" ) ,
246260 manual_composition: Some ( concrete!( Context ) ) ,
247261 skip_deduplication: true ,
@@ -250,8 +264,8 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
250264 DocumentNode {
251265 manual_composition: Some ( generic!( T ) ) ,
252266 inputs: vec![
253- NodeInput :: network ( concrete! ( GraphicGroupTable ) , 0 ) ,
254- NodeInput :: node( NodeId ( 0 ) , 0 ) ,
267+ NodeInput :: node ( NodeId ( 1 ) , 0 ) ,
268+ NodeInput :: node( NodeId ( 2 ) , 0 ) ,
255269 NodeInput :: Reflection ( graph_craft:: document:: DocumentNodeMetadata :: DocumentNodePath ) ,
256270 ] ,
257271 implementation: DocumentNodeImplementation :: proto( "graphene_core::graphic_element::LayerNode" ) ,
0 commit comments