Atomic Blender: Get nodes with their types instead of names #104403

Merged
Clemens Barth merged 1 commits from pioverfour/blender-addons:dp_fix_new_mat_issue_atomic into main 2023-02-09 23:02:29 +01:00

1 Commits

Author SHA1 Message Date
933b5179c0 Atomic Blender: Get nodes with their types instead of names
Using hardcoded names to retrieve nodes can result in errors if the
user has enabled UI translation, because the new nodes may not have
the expected English names.

Instead, we retrieve the nodes using their types (BSDF_PRINCIPLED or
OUTPUT_MATERIAL).

Ref blender/blender#104145
2023-02-09 21:30:53 +01:00