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:
authorDaniel Salazar <zanqdo@gmail.com>2013-12-31 05:56:33 +0400
committerDaniel Salazar <zanqdo@gmail.com>2013-12-31 05:56:33 +0400
commit79e4b952f144dff333a6b8ade25871f278fd8c1f (patch)
tree7c18dee001fe98a7118494a2db12071f9768a80e /animation_animall.py
parentde6df617f4d66e158d1330d669997189d39b1b65 (diff)
AnimAll: Fix error when there is no active object
Diffstat (limited to 'animation_animall.py')
-rw-r--r--animation_animall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/animation_animall.py b/animation_animall.py
index a8b1ae2e..a085a2e1 100644
--- a/animation_animall.py
+++ b/animation_animall.py
@@ -88,7 +88,7 @@ class VIEW3D_PT_animall(bpy.types.Panel):
# show this addon only in the Camera-Data-Panel
@classmethod
def poll(self, context):
- if context.active_object.type in {'MESH', 'LATTICE', 'CURVE', 'SURFACE'}:
+ if context.active_object and context.active_object.type in {'MESH', 'LATTICE', 'CURVE', 'SURFACE'}:
return context.active_object.type
# draw the gui