[Bf-extensions-cvs] [8d27d00] master: rigify fix panel context T50357 thanks angavrilov

meta-androcto noreply at git.blender.org
Sun Jan 8 14:17:14 CET 2017


Commit: 8d27d00742c0af431a37b6e07a0c396d5e9c6895
Author: meta-androcto
Date:   Mon Jan 9 00:16:46 2017 +1100
Branches: master
https://developer.blender.org/rBA8d27d00742c0af431a37b6e07a0c396d5e9c6895

rigify fix panel context T50357 thanks angavrilov

===================================================================

M	rigify/ui.py

===================================================================

diff --git a/rigify/ui.py b/rigify/ui.py
index 46e2905..bcd8b7b 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:



More information about the Bf-extensions-cvs mailing list