carson-katri / carson-katri/geometry-script

Node name collisions in Blender 3.5

Open
#18 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
339
Forks
33
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.