diff options
-rw-r--r-- | animation_animall.py | 2 |
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 |