Magic UV: Get nodes with their types instead of names #104402

Merged
nutti merged 1 commits from pioverfour/blender-addons:dp_fix_new_mat_issue_magicuv into main 2023-02-11 01:33:23 +01:00

1 Commits

Author SHA1 Message Date
Damien Picard cd5d278353 Magic UV: 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-10 10:19:32 +01:00