[Bf-blender-cvs] [a02a57f5443] greasepencil-object: GPencil: Check object type in poll for Bake Animation
Antonio Vazquez
noreply at git.blender.org
Tue Apr 7 16:06:35 CEST 2020
Commit: a02a57f5443e7df82a3245ec7887d5f8253378bb
Author: Antonio Vazquez
Date: Tue Apr 7 16:06:22 2020 +0200
Branches: greasepencil-object
https://developer.blender.org/rBa02a57f5443e7df82a3245ec7887d5f8253378bb
GPencil: Check object type in poll for Bake Animation
===================================================================
M release/scripts/startup/bl_operators/gpencil_mesh_bake.py
===================================================================
diff --git a/release/scripts/startup/bl_operators/gpencil_mesh_bake.py b/release/scripts/startup/bl_operators/gpencil_mesh_bake.py
index 849f7ecfc11..ae75fa0e4d9 100644
--- a/release/scripts/startup/bl_operators/gpencil_mesh_bake.py
+++ b/release/scripts/startup/bl_operators/gpencil_mesh_bake.py
@@ -127,6 +127,7 @@ class GPENCIL_OT_mesh_bake(Operator):
def poll(self, context):
ob = context.active_object
return ((ob is not None) and
+ (ob.type in {'EMPTY', 'MESH'}) and
(context.mode == 'OBJECT'))
def execute(self, context):
More information about the Bf-blender-cvs
mailing list