diff options
author | Lucio Rossi <lucio.rossi75@gmail.com> | 2017-07-28 13:02:53 +0300 |
---|---|---|
committer | Lucio Rossi <lucio.rossi75@gmail.com> | 2017-07-28 13:04:45 +0300 |
commit | 89f470d0cac3057c1365738caf1fdc258a468679 (patch) | |
tree | 57b069a3901f4176c1a2584a382fb53b05db31be /rigify/ui.py | |
parent | 263804791ab703c492142bc160313e235dbad0cb (diff) |
Fix: T52167 Rigify 0.5 "Rigify Type" lags bone properties panel
Diffstat (limited to 'rigify/ui.py')
-rw-r--r-- | rigify/ui.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/rigify/ui.py b/rigify/ui.py index 5850e23e..77e06f01 100644 --- a/rigify/ui.py +++ b/rigify/ui.py @@ -567,12 +567,9 @@ class BONE_PT_rigify_buttons(bpy.types.Panel): @classmethod def poll(cls, context): - if not context.armature or not context.active_pose_bone: - return False - obj = context.object - if obj: - return obj.mode == 'POSE' and context.active_object.data.get("rig_id") is None - return False + + return context.object.type == 'ARMATURE' and context.active_pose_bone\ + and context.active_object.data.get("rig_id") is None def draw(self, context): C = context @@ -588,8 +585,7 @@ class BONE_PT_rigify_buttons(bpy.types.Panel): id_store.rigify_types.remove(0) for r in rig_lists.rig_list: - rig = get_rig_type(r) - if hasattr(rig, 'IMPLEMENTATION') and rig.IMPLEMENTATION: + if r in rig_lists.implementation_rigs: continue # collection = r.split('.')[0] # UNUSED if collection_name == "All": |