Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Node name collisions in Blender 3.5 #18

Open
r-flash opened this issue Apr 6, 2023 · 1 comment
Open

Node name collisions in Blender 3.5 #18

r-flash opened this issue Apr 6, 2023 · 1 comment

Comments

@r-flash
Copy link
Contributor

r-flash commented Apr 6, 2023

In Blender 3.5, there are several collisions of node_type.bl_rna.name.lower(), for example TextureNodeGroup and GeometryNodeGroup are both "Group" and it's the "Texture" one which gets registered as group(). The same with "Math". This leads to errors like this:

RuntimeError: Error: Cannot add node of type TextureNodeMath to node tree 'Test'
  Not a texture node tree

A possible solution would be sorting the list of node types before registration so that those where node_type.__name__.startswith('GeometryNode') are registered last. If you think this is the way to solve this, I can submit a PR.

@carson-katri
Copy link
Owner

That seems like a good solution. Feel free to open a PR.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants