Skip to content
Snippets Groups Projects
Commit cc8f5dce authored by Nathan Vegdahl's avatar Nathan Vegdahl
Browse files

Rigify bugfix: dev tools panel was displayed regardless of mode.

Thanks to Sanc Tuary for the bug report! Bug #35040
parent 32783045
No related branches found
No related tags found
No related merge requests found
......@@ -202,6 +202,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.mode == 'EDIT_ARMATURE' or context.mode == 'EDIT_MESH'
def draw(self, context):
obj = context.active_object
if obj != None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment