Split 'To Graphic' and 'Wrap Graphic' into the 'As Graphic' type assertion and 'Into Group' reducer nodes (#4441)

This commit is contained in:
Keavon Chambers
2026-09-15 16:46:03 +02:00
committed by Dennis Kobert
parent f09eb73c08
commit a41fdb3d75
16 changed files with 123 additions and 81 deletions

View File

@@ -83,17 +83,11 @@ fn node_registry() -> HashMap<ProtoNodeIdentifier, Vec<RegistryEntry>> {
.into_iter()
.map(|entry| (ProtoNodeIdentifier::new("graphene_core::ops::IntoNode<Graphic>"), entry)),
);
// The typed-level collapse rows of To Graphic, served under its identifier.
// The unit row of As Graphic: an unconnected content input renders as nothing.
node_types.extend(
graphene_std::graphic::to_graphic_typed_entries()
graphene_std::graphic::as_graphic_unit_entries()
.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)),
.map(|entry| (graphene_std::graphic::as_graphic::IDENTIFIER.clone(), entry)),
);
// =============
// CONVERT NODES