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:
authorLucio Rossi <lucio.rossi75@gmail.com>2017-10-30 19:39:01 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-01-01 18:23:31 +0300
commitb20b05bed57f7360abb1d6d42d907391082d2018 (patch)
treeda685b32ad06363784b4f05b531769308057adfe
parent1f7b25e4728fa108c6e2e40fb6f091d22359d929 (diff)
fix: Encode Widget btn not showing in Tools
-rw-r--r--rigify/ui.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/rigify/ui.py b/rigify/ui.py
index dc9c4553..5181e731 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: