geometry-script icon indicating copy to clipboard operation
geometry-script copied to clipboard

Node name collisions in Blender 3.5

Open r-flash opened this issue 2 years ago • 1 comments
trafficstars

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.

r-flash avatar Apr 06 '23 15:04 r-flash

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

carson-katri avatar Apr 06 '23 15:04 carson-katri