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:
authorTuomo Keskitalo <tuomo.keskitalo@iki.fi>2018-05-29 00:13:58 +0300
committerInes Almeida <britalmeida@gmail.com>2018-05-29 00:45:22 +0300
commit4e5d5b3a9e592b374d2473db007114928eb0b4e8 (patch)
tree17c72c1cef58c5198c193c1cccafd4a95b6699c2 /source/blender/editors
parenteb2491363a7e8e08ff91a983c085734a71a129ab (diff)
COW operators: Fix VIEW3D_OT_view_all cursor not updating with shift+c center cursor
This differential fixes a bug for resetting view (shift+c). Bug description: When 3D cursor is placed randomly somewhere, and shift+c is pressed, the cursor is not shown to reset at world center. Reviewers: sergey, aligorith, brita_ Reviewed By: brita_ Subscribers: brita_ Differential Revision: https://developer.blender.org/D3423
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_view3d/view3d_edit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c
index cd8a49fd697..3f59a5db9b3 100644
--- a/source/blender/editors/space_view3d/view3d_edit.c
+++ b/source/blender/editors/space_view3d/view3d_edit.c
@@ -2765,6 +2765,10 @@ 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;
}