Fix #104441: Bsurfaces: get modifiers with their type instead of name #104443

Merged
Damien Picard merged 1 commits from pioverfour/blender-addons:dp_fix_104441 into blender-v3.5-release 2023-02-27 22:58:53 +01:00

1 Commits

Author SHA1 Message Date
c82b1f3093 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).
2023-02-27 21:53:08 +01:00