Fix #104441: Bsurfaces: get modifiers with their type instead of name
commit8b3c6b7c7637a62252ccf94a224e685dab815673
authorDamien Picard <dam.pic@free.fr>
Mon, 27 Feb 2023 10:48:43 +0000 (27 11:48 +0100)
committerGitea <gitea@fake.local>
Mon, 27 Feb 2023 21:58:51 +0000 (27 22:58 +0100)
tree416f6c2b4911cf5eed1742f24172376f85b2ed98
parentb90016243704d8145cfcbdadb1755537cc49942c
Fix #104441: Bsurfaces: get modifiers with their type instead of name

Using hardcoded names to retrieve materials can result in errors if
the user has enabled UI translation, because the new materials may not
have the expected English names.

Instead, we retrieve the materials using their types (SHRINKWRAP or
SUBSURF, for example).

Pull Request #104443
mesh_bsurfaces.py