[Bf-extensions-cvs] [d5ad2933] blender2.8: Material Utils: add GPencil as a type supporting material

Ines Almeida noreply at git.blender.org
Wed Sep 12 20:08:13 CEST 2018


Commit: d5ad293372d3a66ea52ec9d307104e3cd62d3cb6
Author: Ines Almeida
Date:   Wed Sep 12 20:09:17 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBAd5ad293372d3a66ea52ec9d307104e3cd62d3cb6

Material Utils: add GPencil as a type supporting material

===================================================================

M	materials_utils/__init__.py

===================================================================

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)



More information about the Bf-extensions-cvs mailing list