diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-16 13:56:39 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-16 13:59:21 +0300 |
commit | 6a75a1a669d2d4ffc6f62110a374695543abe0e0 (patch) | |
tree | 76eb6fe773b7008968ac28cf40dd08465bee904e /source | |
parent | cab5dd5ea0596d053fccdafb4b5fd894bbf246a1 (diff) |
Depsgraph: Tag scene after changing cursor location
While 3d cursor is mainly an UI thing and isn't needed for scene evaluation,
it is stored in scene DNA. This means, operator is inform depsgraph that data
has changed, so all copies of that scene can copy new values.
Fixes lack of visual feedback when changing cursor location in viewport
with copy-on-write enabled.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_edit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c index 0ae69debf18..4a50cbcd12a 100644 --- a/source/blender/editors/space_view3d/view3d_edit.c +++ b/source/blender/editors/space_view3d/view3d_edit.c @@ -4604,6 +4604,8 @@ void ED_view3d_cursor3d_update(bContext *C, const int mval[2]) WM_event_add_notifier(C, NC_SPACE | ND_SPACE_VIEW3D, v3d); else WM_event_add_notifier(C, NC_SCENE | NA_EDITED, scene); + + DEG_id_tag_update(&scene->id, DEG_TAG_COPY_ON_WRITE); } static int view3d_cursor3d_invoke(bContext *C, wmOperator *UNUSED(op), const wmEvent *event) |