rigify fix panel context T50357 thanks angavrilov

This commit is contained in:
Brendon Murphy 2017-01-09 00:16:46 +11:00
parent fef70fae0d
commit 8d27d00742
1 changed files with 4 additions and 0 deletions

View File

@ -204,6 +204,10 @@ class VIEW3D_PT_tools_rigify_dev(bpy.types.Panel):
bl_space_type = 'VIEW_3D'
bl_region_type = 'TOOLS'
@classmethod
def poll(cls, context):
return context.active_object is not None and context.mode in {'EDIT_ARMATURE','EDIT_MESH'}
def draw(self, context):
obj = context.active_object
if obj is not None: