diff options
author | Tuomo Keskitalo <tuomo.keskitalo@iki.fi> | 2018-05-29 00:13:58 +0300 |
---|---|---|
committer | Ines Almeida <britalmeida@gmail.com> | 2018-05-29 00:45:22 +0300 |
commit | 4e5d5b3a9e592b374d2473db007114928eb0b4e8 (patch) | |
tree | 17c72c1cef58c5198c193c1cccafd4a95b6699c2 /source/blender/editors/space_view3d | |
parent | eb2491363a7e8e08ff91a983c085734a71a129ab (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/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_edit.c | 4 |
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; } |