@@ -237,28 +237,21 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
237237 node_template: NodeTemplate {
238238 document_node: DocumentNode {
239239 implementation: DocumentNodeImplementation :: Network ( NodeNetwork {
240- exports: vec![ NodeInput :: node( NodeId ( 2 ) , 0 ) ] ,
240+ exports: vec![ NodeInput :: node( NodeId ( 1 ) , 0 ) ] ,
241241 nodes: [
242- // Primary (bottom) input type coercion
243- DocumentNode {
244- inputs: vec![ NodeInput :: network( generic!( T ) , 0 ) ] ,
245- implementation: DocumentNodeImplementation :: proto( "graphene_core::graphic_element::ToGroupNode" ) ,
246- manual_composition: Some ( generic!( T ) ) ,
247- ..Default :: default ( )
248- } ,
249242 // The monitor node is used to display a thumbnail in the UI
250243 DocumentNode {
251- inputs: vec![ NodeInput :: network( generic! ( T ) , 1 ) ] ,
244+ inputs: vec![ NodeInput :: network( concrete! ( GraphicElement ) , 1 ) ] ,
252245 implementation: DocumentNodeImplementation :: proto( "graphene_core::memo::MonitorNode" ) ,
253- manual_composition: Some ( generic! ( T ) ) ,
246+ manual_composition: Some ( concrete! ( Context ) ) ,
254247 skip_deduplication: true ,
255248 ..Default :: default ( )
256249 } ,
257250 DocumentNode {
258251 manual_composition: Some ( generic!( T ) ) ,
259252 inputs: vec![
253+ NodeInput :: network( concrete!( GraphicGroupTable ) , 0 ) ,
260254 NodeInput :: node( NodeId ( 0 ) , 0 ) ,
261- NodeInput :: node( NodeId ( 1 ) , 0 ) ,
262255 NodeInput :: Reflection ( graph_craft:: document:: DocumentNodeMetadata :: DocumentNodePath ) ,
263256 ] ,
264257 implementation: DocumentNodeImplementation :: proto( "graphene_core::graphic_element::LayerNode" ) ,
@@ -284,22 +277,6 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
284277 network_metadata: Some ( NodeNetworkMetadata {
285278 persistent_metadata: NodeNetworkPersistentMetadata {
286279 node_metadata: [
287- DocumentNodeMetadata {
288- persistent_metadata: DocumentNodePersistentMetadata {
289- display_name: "To Element" . to_string( ) ,
290- node_type_metadata: NodeTypePersistentMetadata :: node( IVec2 :: new( -14 , -1 ) ) ,
291- ..Default :: default ( )
292- } ,
293- ..Default :: default ( )
294- } ,
295- DocumentNodeMetadata {
296- persistent_metadata: DocumentNodePersistentMetadata {
297- display_name: "To Group" . to_string( ) ,
298- node_type_metadata: NodeTypePersistentMetadata :: node( IVec2 :: new( -14 , -3 ) ) ,
299- ..Default :: default ( )
300- } ,
301- ..Default :: default ( )
302- } ,
303280 DocumentNodeMetadata {
304281 persistent_metadata: DocumentNodePersistentMetadata {
305282 display_name: "Monitor" . to_string( ) ,
0 commit comments