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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-06-28 14:00:53 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-06-28 14:01:37 +0300
commit7d785fb156826a54ff58764988b30659ac1f5ba2 (patch)
tree34dcd85e4799232ad34347c468bf6babd907a27e /rigify/ui.py
parentcfc76e7cb8bbb3d178cae299c4d511c838b47d58 (diff)
Fix rigify Python errors when there is no active object
Diffstat (limited to 'rigify/ui.py')
-rw-r--r--rigify/ui.py3
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