From 79e4b952f144dff333a6b8ade25871f278fd8c1f Mon Sep 17 00:00:00 2001 From: Daniel Salazar <zanqdo@gmail.com> Date: Mon, 30 Dec 2013 19:56:33 -0600 Subject: [PATCH] AnimAll: Fix error when there is no active object --- animation_animall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/animation_animall.py b/animation_animall.py index a8b1ae2e0..a085a2e16 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 -- GitLab