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:
authorCampbell Barton <ideasman42@gmail.com>2017-09-13 16:44:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-09-13 16:44:13 +0300
commit37d8d4787cfa3d04b09f935c5600f1a3ea7b74e7 (patch)
treeb60dfc428ccd61b5b3af6a06cee6ddbe69d3973e /release
parent9abacf38fd4f3b0de4b6d9a4644b9cb1155482c9 (diff)
parent6f633dec5d105ad91dcb5774a6fd4fb06bf264a5 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/object_align.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/object_align.py b/release/scripts/startup/bl_operators/object_align.py
index 1539ffb3545..b7d3866989d 100644
--- a/release/scripts/startup/bl_operators/object_align.py
+++ b/release/scripts/startup/bl_operators/object_align.py
@@ -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]