From c98545b6ca7e653ec1a4d8cb33397aea3f65b2f1 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 24 Oct 2022 16:50:50 +0200 Subject: [PATCH] PD: [skip ci] disable undo/redo for the tmp. document created by the SubShapeBinder --- src/Mod/PartDesign/App/ShapeBinder.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Mod/PartDesign/App/ShapeBinder.cpp b/src/Mod/PartDesign/App/ShapeBinder.cpp index 2d059cccf8..1011d7d22d 100644 --- a/src/Mod/PartDesign/App/ShapeBinder.cpp +++ b/src/Mod/PartDesign/App/ShapeBinder.cpp @@ -571,6 +571,7 @@ void SubShapeBinder::update(SubShapeBinder::UpdateOption options) { auto tmpDoc = App::GetApplication().newDocument( "_tmp_binder", nullptr, false, true); + tmpDoc->setUndoMode(0); auto objs = tmpDoc->copyObject({ obj }, true, true); if (!objs.empty()) { for (auto it = objs.rbegin(); it != objs.rend(); ++it)