[Bf-extensions-cvs] [6b065add] master: fix: Encode Widget btn not showing in Tools
Lucio Rossi
noreply at git.blender.org
Mon Oct 30 17:41:57 CET 2017
Commit: 6b065addaf31c079a842a4dbd227bae85785f4e8
Author: Lucio Rossi
Date: Mon Oct 30 17:39:01 2017 +0100
Branches: master
https://developer.blender.org/rBA6b065addaf31c079a842a4dbd227bae85785f4e8
fix: Encode Widget btn not showing in Tools
===================================================================
M rigify/ui.py
===================================================================
diff --git a/rigify/ui.py b/rigify/ui.py
index 7d5490e0..ce66da96 100644
--- a/rigify/ui.py
+++ b/rigify/ui.py
@@ -627,10 +627,13 @@ class BONE_PT_rigify_buttons(bpy.types.Panel):
class VIEW3D_PT_tools_rigify_dev(bpy.types.Panel):
bl_label = "Rigify Dev Tools"
bl_category = 'Tools'
- bl_context = "armature_edit"
bl_space_type = 'VIEW_3D'
bl_region_type = 'TOOLS'
+ @classmethod
+ def poll(cls, context):
+ return 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