diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-04-05 21:00:31 +0300 |
---|---|---|
committer | Fabian Schempp <fabianschempp@googlemail.com> | 2022-04-11 01:31:58 +0300 |
commit | 70f6d28c142ed6edabbda36bb6c53de7403674db (patch) | |
tree | b0c4165f5387326be68a285cca8017947c3a1fb9 | |
parent | 0f00e2198fca2d55711b1e14315d17555a3abd71 (diff) |
Curves: fix missing updates switching to sculpt mode
This would cause the viewport to draw stale data until a stroke
is done.
-rw-r--r-- | source/blender/editors/sculpt_paint/curves_sculpt_ops.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc b/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc index 893b2640427..8afdd7f3481 100644 --- a/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc +++ b/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc @@ -660,6 +660,10 @@ static void curves_sculptmode_enter(bContext *C) ob->mode = OB_MODE_SCULPT_CURVES; paint_cursor_start(&curves_sculpt->paint, CURVES_SCULPT_mode_poll_view3d); + + /* Update for mode change. */ + DEG_id_tag_update(&ob->id, ID_RECALC_COPY_ON_WRITE); + WM_event_add_notifier(C, NC_SCENE | ND_MODE, nullptr); } static void curves_sculptmode_exit(bContext *C) |