fix for error in add mesh script with no operator passed.

This commit is contained in:
Campbell Barton 2011-01-26 14:52:00 +00:00
parent 2761799c64
commit 2df908df39

@ -48,7 +48,7 @@ def add_object_align_init(context, operator):
else:
operator.properties.view_align = view_align
if operator.properties.is_property_set("rotation") and not view_align_force:
if operator and operator.properties.is_property_set("rotation") and not view_align_force:
rotation = mathutils.Euler(operator.properties.rotation).to_matrix().resize4x4()
else:
if view_align and space_data: