Atomic Blender: Get nodes with their types instead of names
commitcaed9c9da57c5b98e5a374caee1f49f7428e4f59
authorDamien Picard <pioverfour@noreply.localhost>
Thu, 9 Feb 2023 22:02:28 +0000 (9 23:02 +0100)
committerClemens Barth <blendphys@noreply.localhost>
Thu, 9 Feb 2023 22:02:28 +0000 (9 23:02 +0100)
treefc8ad4da732091601dd09f5baba30a5aeacbafd7
parentf5b0b65ed46439559577027d71a36372facdb81f
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

Co-authored-by: Damien Picard <dam.pic@free.fr>
Pull Request #104403
io_mesh_atomic/__init__.py
io_mesh_atomic/pdb_import.py
io_mesh_atomic/utility_panel.py
io_mesh_atomic/xyz_import.py