WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@adamgerhant
Copy link
Collaborator

@adamgerhant adamgerhant commented Dec 6, 2025

Improves the definition reference system by referencing nodes with DefinitionIdentifier instead of strings. This means protonodes use their identifier to reference their definition, instead of an arbitrary string.

Sets the foundation for an improved migration system and linking nodes to their definition when serializing.

For example:
instead of

resolve_document_node_type("Star")

you would do

resolve_document_node_type(&DefinitionIdentifier::ProtoNode(graphene_std::vector::generator_nodes::star::IDENTIFIER))

Another example

resolve_document_node_type("Merge")

to

resolve_document_node_type(&DefinitionIdentifer::Network("Merge".to_string()))

RegistryWidgetOverride::Custom(str) => InputMetadata::with_name_description_override(f.name, f.description, WidgetOverride::Custom(str.to_string())),
})
.collect(),
output_names: vec![output_type.to_string()],
Copy link
Collaborator Author

@adamgerhant adamgerhant Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed since the output name of a protonode should not be a single random output type, as this can change and should be based on the current graph state.

document.network_interface.set_input(&InputConnector::node(*node_id, 2), old_inputs[3].clone(), network_path);
}

if reference == "Flatten Vector Elements" {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not possible to include this migration since it relies on changing reference to not run again, which is no longer possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants