geometry-script
geometry-script copied to clipboard
Node name collisions in Blender 3.5
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.
That seems like a good solution. Feel free to open a PR.