fix for error in recent commit.
authorCampbell Barton <ideasman42@gmail.com>
Sun, 31 Jul 2011 12:46:34 +0000 (12:46 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 31 Jul 2011 12:46:34 +0000 (12:46 +0000)
release/scripts/modules/bpy_extras/object_utils.py

index ba2db0a4e5597b69007ed538cd7631f5b4387b2f..790f5ba48cba540233ae41a909af41c511cad2b5 100644 (file)
@@ -41,7 +41,7 @@ def add_object_align_init(context, operator):
     """
 
     from mathutils import Matrix, Vector, Euler
-    properties = operator.properties
+    properties = operator.properties if operator is not None else None
 
     space_data = context.space_data
     if space_data.type != 'VIEW_3D':