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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-12-06 07:52:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-06 07:52:12 +0300
commitc39bb6bd58c0c92335f1f4b7b0b35af5cbe29a4a (patch)
treea4ab6bd5e2a8173a8cbcc354a9a73b70cc5d3122 /source
parent45afcd6b86be25c4acede0c7afcf1a3384d99cad (diff)
Fix T58836: Shift-C doesn't update the view
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_view3d/view3d_edit.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c
index 233bcb7f50c..6df4b3f82b9 100644
--- a/source/blender/editors/space_view3d/view3d_edit.c
+++ b/source/blender/editors/space_view3d/view3d_edit.c
@@ -2734,6 +2734,11 @@ static int view3d_all_exec(bContext *C, wmOperator *op)
BKE_object_minmax(base_eval->object, min, max, false);
}
}
+
+ if (center) {
+ DEG_id_tag_update(&scene->id, DEG_TAG_COPY_ON_WRITE);
+ }
+
if (!changed) {
ED_region_tag_redraw(ar);
/* TODO - should this be cancel?
@@ -2753,10 +2758,6 @@ static int view3d_all_exec(bContext *C, wmOperator *op)
view3d_from_minmax(C, v3d, ar, min, max, true, smooth_viewtx);
}
- if (center) {
- DEG_id_tag_update(&scene->id, DEG_TAG_COPY_ON_WRITE);
- }
-
return OPERATOR_FINISHED;
}