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
diff options
context:
space:
mode:
authormeta-androcto <meta.androcto1@gmail.com>2017-01-08 16:16:46 +0300
committermeta-androcto <meta.androcto1@gmail.com>2017-01-08 16:16:46 +0300
commit8d27d00742c0af431a37b6e07a0c396d5e9c6895 (patch)
treeeade2e0ca729e3ebe5e23e9dac34ba71d69cd06e
parentfef70fae0ded8ac2ee184ca64b4a5eeb9bde2bf5 (diff)
rigify fix panel context T50357 thanks angavrilov
-rw-r--r--rigify/ui.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/rigify/ui.py b/rigify/ui.py
index 46e2905a..bcd8b7be 100644
--- a/rigify/ui.py
+++ b/rigify/ui.py
@@ -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: