Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInes Almeida <britalmeida@gmail.com>2018-09-12 21:09:17 +0300
committerInes Almeida <britalmeida@gmail.com>2018-09-12 21:09:17 +0300
commitd5ad293372d3a66ea52ec9d307104e3cd62d3cb6 (patch)
treeb16a78f7bb8ba8fdde8e548dbcab1c3b58c0350d /materials_utils
parent5f7fba0565a7c9ae93eae31a08fc9bbbd16d333a (diff)
Material Utils: add GPencil as a type supporting material
Diffstat (limited to 'materials_utils')
-rw-r--r--materials_utils/__init__.py2
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)