diff --git a/node-graph/interpreted-executor/src/node_registry.rs b/node-graph/interpreted-executor/src/node_registry.rs index 4d05cb95a6..f9dff0c93c 100644 --- a/node-graph/interpreted-executor/src/node_registry.rs +++ b/node-graph/interpreted-executor/src/node_registry.rs @@ -122,6 +122,12 @@ fn node_registry() -> HashMap> { .into_iter() .map(|entry| (graphene_std::graphic::to_graphic::IDENTIFIER.clone(), entry)), ); + // The unit row of To Graphic: an unconnected content input renders as nothing. + node_types.extend( + graphene_std::graphic::to_graphic_unit_entries() + .into_iter() + .map(|entry| (graphene_std::graphic::to_graphic::IDENTIFIER.clone(), entry)), + ); // The transitional level bridge: a leveled wire materializes into the legacy // list an unconverted consumer expects. The rows are keyed under the legacy // convert identifiers and die with the last legacy consumer. diff --git a/node-graph/nodes/graphic/src/graphic.rs b/node-graph/nodes/graphic/src/graphic.rs index 127e21bf0b..a5af6102b4 100644 --- a/node-graph/nodes/graphic/src/graphic.rs +++ b/node-graph/nodes/graphic/src/graphic.rs @@ -552,6 +552,17 @@ pub fn to_graphic_typed Result, Interrupt> { + Err(core_types::gpoll::GraphError::past_end().into()) +} + +fn to_graphic_unit_extent(_content: core_types::extent::ValueIn<'_, ()>, _level: LevelIn) -> GPoll { + GPoll::Final(Extent::Exactly(0)) +} + /// The transitional level bridge: the wire's records as the legacy list an /// unconverted consumer expects, attributes copied through their erased /// reads. Registered under the legacy convert identifiers; the rows die with @@ -570,6 +581,7 @@ pub fn level_to_list( pub use _level_to_list_mod::level_to_list_entries; pub use _to_graphic_element_mod::to_graphic_element_entries; pub use _to_graphic_typed_mod::to_graphic_typed_entries; +pub use _to_graphic_unit_mod::to_graphic_unit_entries; /// Removes a level of nesting from a `Graphic[]`, or all nesting if "Fully Flatten" is enabled. #[node_macro::node(category("General"), extent(flatten_graphic_extent))]