Material Utils: add GPencil as a type supporting material

This commit is contained in:
Inês Almeida 2018-09-12 20:09:17 +02:00
parent 5f7fba0565
commit d5ad293372
1 changed files with 1 additions and 1 deletions

View File

@ -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)