Fix T52140: Align objects centers using origin for text

The issue was caused by operator redo which frees all object's evaluated data,
including bounding box. This bounding box can not be reconstructed properly
without full curve evaluation (need to at least convert font to nurbs, which is
not cheap already).
This commit is contained in:
Sergey Sharybin 2017-09-13 17:38:20 +05:00
parent 43858c4197
commit 76e7c039ec
Notes: blender-bot 2023-06-26 11:58:59 +02:00
Referenced by issue #53683, 2.79a release
Referenced by issue #52140, Align objects centers using origin for text
1 changed files with 5 additions and 0 deletions

View File

@ -131,6 +131,11 @@ def align_objects(context,
cursor = (space if space and space.type == 'VIEW_3D' else scene).cursor_location
# We are accessing runtime data such as evaluated bounding box, so we need to
# be sure it is properly updated and valid (bounding box might be lost on operator
# redo).
scene.update()
Left_Front_Up_SEL = [0.0, 0.0, 0.0]
Right_Back_Down_SEL = [0.0, 0.0, 0.0]