mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 14:58:05 +08:00
Split 'To Graphic' and 'Wrap Graphic' into the 'As Graphic' type assertion and 'Into Group' reducer nodes (#4441)
This commit is contained in:
committed by
Dennis Kobert
parent
f09eb73c08
commit
a41fdb3d75
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user