Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/rigify
diff options
context:
space:
mode:
authorNathan Vegdahl <cessen@cessen.com>2013-04-24 04:11:45 +0400
committerNathan Vegdahl <cessen@cessen.com>2013-04-24 04:11:45 +0400
commitcc8f5dce95bb41a54ba4f0393720bb82ed424052 (patch)
treef8b5b78108ecb73328c65d50aea5743d9bab7b9e /rigify
parent327830452e0a084c6364607f3b5c171a99966ca5 (diff)
Rigify bugfix: dev tools panel was displayed regardless of mode.
Thanks to Sanc Tuary for the bug report! Bug #35040
Diffstat (limited to 'rigify')
-rw-r--r--rigify/ui.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/rigify/ui.py b/rigify/ui.py
index e95e4774..0e34ba42 100644
--- a/rigify/ui.py
+++ b/rigify/ui.py
@@ -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: