[Bf-extensions-cvs] [79e4b95] master: AnimAll: Fix error when there is no active object

Daniel Salazar noreply at git.blender.org
Tue Dec 31 02:57:04 CET 2013


Commit: 79e4b952f144dff333a6b8ade25871f278fd8c1f
Author: Daniel Salazar
Date:   Mon Dec 30 19:56:33 2013 -0600
https://developer.blender.org/rBA79e4b952f144dff333a6b8ade25871f278fd8c1f

AnimAll: Fix error when there is no active object

===================================================================

M	animation_animall.py

===================================================================

diff --git a/animation_animall.py b/animation_animall.py
index a8b1ae2..a085a2e 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



More information about the Bf-extensions-cvs mailing list