Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Salazar <zanqdo@gmail.com>2015-05-02 01:17:23 +0300
committerDaniel Salazar <zanqdo@gmail.com>2015-05-02 01:17:23 +0300
commitb50c6e3f6f9f50a6e8e5e84844f00eca07ef8ec9 (patch)
treea6703318f51d9367339f9268dad42ca1a163a78b
parentbd6e1e6ad7c8856070152991ea62e917ddbd974f (diff)
Object Align Operator: Make it use modifiers in high quality bounding box calculation
-rw-r--r--release/scripts/startup/bl_operators/object_align.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/object_align.py b/release/scripts/startup/bl_operators/object_align.py
index e843209da3c..916a9f66915 100644
--- a/release/scripts/startup/bl_operators/object_align.py
+++ b/release/scripts/startup/bl_operators/object_align.py
@@ -70,7 +70,9 @@ def GlobalBB_HQ(obj):
# Initialize the variables with the last vertex
- verts = obj.data.vertices
+ 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