From a8fb302752a1d9f4af225d284dd1e3e3ac5668c9 Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 30 Mar 2017 16:59:26 +0300 Subject: [PATCH] Fix passing events during the Undo operation (issues #2062, #2070) --- src/Events/Events_Loop.cpp | 2 +- src/Model/Model_Update.cpp | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Events/Events_Loop.cpp b/src/Events/Events_Loop.cpp index 1bbe62aaa..0d380b76b 100644 --- a/src/Events/Events_Loop.cpp +++ b/src/Events/Events_Loop.cpp @@ -207,7 +207,7 @@ void Events_Loop::flush(const Events_ID& theID) } } } - if (hasEventsToFlush && myGroups.empty()) { + if (hasEventsToFlush && myGroups.empty() && myFlushed.empty()) { // no more messages left in the queue, so, finalize the sketch processing static Events_ID anID = Events_Loop::eventByName("SketchPrepared"); std::shared_ptr aMsg(new Events_Message(anID, this)); diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index f1e23dcf8..2c18d72bc 100755 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -500,10 +500,6 @@ bool Model_Update::processFeature(FeaturePtr theFeature) (*aRIter)->attributeChanged("External"); } } - // send event that sketch is prepared to be recomputed - static Events_ID anID = Events_Loop::eventByName("SketchPrepared"); - std::shared_ptr aMsg(new Events_Message(anID, this)); - Events_Loop::loop()->send(aMsg); } if (!aIsModified) { // no modification is needed -- 2.39.2