diff options
author | Ines Almeida <britalmeida@gmail.com> | 2018-09-12 21:09:17 +0300 |
---|---|---|
committer | Ines Almeida <britalmeida@gmail.com> | 2018-09-12 21:09:17 +0300 |
commit | d5ad293372d3a66ea52ec9d307104e3cd62d3cb6 (patch) | |
tree | b16a78f7bb8ba8fdde8e548dbcab1c3b58c0350d | |
parent | 5f7fba0565a7c9ae93eae31a08fc9bbbd16d333a (diff) |
Material Utils: add GPencil as a type supporting material
-rw-r--r-- | materials_utils/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/materials_utils/__init__.py b/materials_utils/__init__.py index ea85a104..d238204d 100644 --- a/materials_utils/__init__.py +++ b/materials_utils/__init__.py @@ -2506,7 +2506,7 @@ def check_mat_name_unique(name_id="Material_new"): def included_object_types(objects): # Pass the bpy.data.objects.type to avoid needless assigning/removing # included - type that can have materials - included = ['MESH', 'CURVE', 'SURFACE', 'FONT', 'META'] + included = ['MESH', 'CURVE', 'SURFACE', 'FONT', 'META', 'GPENCIL'] obj = objects return bool(obj and obj in included) |