Object Align Operator: Make it use modifiers in high quality bounding box calculation

This commit is contained in:
Daniel Salazar 2015-05-01 16:17:23 -06:00
parent bd6e1e6ad7
commit b50c6e3f6f
Notes: blender-bot 2023-02-14 09:09:39 +01:00
Referenced by issue #44643, Cycles rendering, packed images render differently from unpacked
1 changed files with 3 additions and 1 deletions

View File

@ -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