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:
parent
b0c55d5c94
commit
3a0f199aa7
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue