diff --git a/release/scripts/startup/bl_operators/object_align.py b/release/scripts/startup/bl_operators/object_align.py index 7fb0924add5..3c84e5dc553 100644 --- a/release/scripts/startup/bl_operators/object_align.py +++ b/release/scripts/startup/bl_operators/object_align.py @@ -72,7 +72,6 @@ def GlobalBB_HQ(obj): me = obj.to_mesh(scene=bpy.context.scene, apply_modifiers=True, settings='PREVIEW') verts = me.vertices - bpy.data.meshes.remove(me) val = matrix_world * verts[-1].co @@ -113,6 +112,8 @@ def GlobalBB_HQ(obj): if val > up: up = val + bpy.data.meshes.remove(me) + return Vector((left, front, up)), Vector((right, back, down))