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:
authorCampbell Barton <ideasman42@gmail.com>2019-11-18 15:36:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-11-18 15:36:16 +0300
commit995b98aee236f112903550d1dd767e26226d799a (patch)
treea36e6ce98c08cd5601fb634d1b1924008e595ae5
parentd124545013fda15c69bad92e7daedb717c36a357 (diff)
parent1cb07530a95615d2bec95ac76c62617838ff0a35 (diff)
Merge branch 'blender-v2.81-release'
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index f7a5052b74a..6032c3615c6 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -7876,6 +7876,13 @@ static int sculpt_mode_toggle_exec(bContext *C, wmOperator *op)
WM_toolsystem_update_from_context_view3d(C);
+ /* Without this the memfile undo step is used,
+ * while it works it causes lag when undoing the first undo step, see T71564. */
+ wmWindowManager *wm = CTX_wm_manager(C);
+ if (wm->op_undo_depth <= 1) {
+ sculpt_undo_push_begin(op->type->name);
+ }
+
return OPERATOR_FINISHED;
}