diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-28 14:00:53 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-28 14:01:37 +0300 |
commit | 7d785fb156826a54ff58764988b30659ac1f5ba2 (patch) | |
tree | 34dcd85e4799232ad34347c468bf6babd907a27e /rigify | |
parent | cfc76e7cb8bbb3d178cae299c4d511c838b47d58 (diff) |
Fix rigify Python errors when there is no active object
Diffstat (limited to 'rigify')
-rw-r--r-- | rigify/ui.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rigify/ui.py b/rigify/ui.py index 35b9c847..933aec71 100644 --- a/rigify/ui.py +++ b/rigify/ui.py @@ -662,7 +662,8 @@ class VIEW3D_PT_rigify_animation_tools(bpy.types.Panel): @classmethod def poll(cls, context): - return context.object.type == 'ARMATURE' and context.active_object.data.get("rig_id") is not None + return context.object and context.object.type == 'ARMATURE'\ + and context.active_object.data.get("rig_id") is not None def draw(self, context): obj = context.active_object |