@@ -239,28 +239,21 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
239239 node_template: NodeTemplate {
240240 document_node: DocumentNode {
241241 implementation: DocumentNodeImplementation :: Network ( NodeNetwork {
242- exports: vec![ NodeInput :: node( NodeId ( 2 ) , 0 ) ] ,
242+ exports: vec![ NodeInput :: node( NodeId ( 1 ) , 0 ) ] ,
243243 nodes: [
244- // Primary (bottom) input type coercion
245- DocumentNode {
246- inputs: vec![ NodeInput :: network( generic!( T ) , 0 ) ] ,
247- implementation: DocumentNodeImplementation :: proto( "graphene_core::graphic_element::ToGroupNode" ) ,
248- manual_composition: Some ( generic!( T ) ) ,
249- ..Default :: default ( )
250- } ,
251244 // The monitor node is used to display a thumbnail in the UI
252245 DocumentNode {
253- inputs: vec![ NodeInput :: network( generic! ( T ) , 1 ) ] ,
246+ inputs: vec![ NodeInput :: network( concrete! ( GraphicElement ) , 1 ) ] ,
254247 implementation: DocumentNodeImplementation :: proto( "graphene_core::memo::MonitorNode" ) ,
255- manual_composition: Some ( generic! ( T ) ) ,
248+ manual_composition: Some ( concrete! ( Context ) ) ,
256249 skip_deduplication: true ,
257250 ..Default :: default ( )
258251 } ,
259252 DocumentNode {
260253 manual_composition: Some ( generic!( T ) ) ,
261254 inputs: vec![
255+ NodeInput :: network( concrete!( GraphicGroupTable ) , 0 ) ,
262256 NodeInput :: node( NodeId ( 0 ) , 0 ) ,
263- NodeInput :: node( NodeId ( 1 ) , 0 ) ,
264257 NodeInput :: Reflection ( graph_craft:: document:: DocumentNodeMetadata :: DocumentNodePath ) ,
265258 ] ,
266259 implementation: DocumentNodeImplementation :: proto( "graphene_core::graphic_element::LayerNode" ) ,
@@ -286,22 +279,6 @@ fn static_nodes() -> Vec<DocumentNodeDefinition> {
286279 network_metadata: Some ( NodeNetworkMetadata {
287280 persistent_metadata: NodeNetworkPersistentMetadata {
288281 node_metadata: [
289- DocumentNodeMetadata {
290- persistent_metadata: DocumentNodePersistentMetadata {
291- display_name: "To Element" . to_string( ) ,
292- node_type_metadata: NodeTypePersistentMetadata :: node( IVec2 :: new( -14 , -1 ) ) ,
293- ..Default :: default ( )
294- } ,
295- ..Default :: default ( )
296- } ,
297- DocumentNodeMetadata {
298- persistent_metadata: DocumentNodePersistentMetadata {
299- display_name: "To Group" . to_string( ) ,
300- node_type_metadata: NodeTypePersistentMetadata :: node( IVec2 :: new( -14 , -3 ) ) ,
301- ..Default :: default ( )
302- } ,
303- ..Default :: default ( )
304- } ,
305282 DocumentNodeMetadata {
306283 persistent_metadata: DocumentNodePersistentMetadata {
307284 display_name: "Monitor" . to_string( ) ,
0 commit comments