Magic UV: Get nodes with their types instead of names
commit8fb28124ba40836941ad0fef8b53d2b450250054
authorDamien Picard <pioverfour@noreply.localhost>
Sat, 11 Feb 2023 00:33:21 +0000 (11 01:33 +0100)
committernutti <nutti@noreply.localhost>
Sat, 11 Feb 2023 00:33:21 +0000 (11 01:33 +0100)
treeaa3a06c70397dd00b48c516f2d94f2402d592452
parent5c22e77ea30327173d542b41dc2f7653f2cb1a7a
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

Co-authored-by: Damien Picard <dam.pic@free.fr>
Pull Request #104402
magic_uv/op/texture_projection.py
magic_uv/op/uv_inspection.py