From f3fe84b84646ce3ece6e0fd1511cacdae29c7765 Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 31 Mar 2017 16:36:17 +0300 Subject: [PATCH] Fix the problem of not previewed results of constraints applied. Flash Delete (for the sketch result) to start processing of the sketch in the solver. --- src/SketchPlugin/SketchPlugin_Sketch.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SketchPlugin/SketchPlugin_Sketch.cpp b/src/SketchPlugin/SketchPlugin_Sketch.cpp index 04cf7331b..91fddccd7 100755 --- a/src/SketchPlugin/SketchPlugin_Sketch.cpp +++ b/src/SketchPlugin/SketchPlugin_Sketch.cpp @@ -139,6 +139,11 @@ std::shared_ptr SketchPlugin_Sketch::addFeature(std::string th } // set as current also after it becomes sub to set correctly enabled for other sketch subs document()->setCurrentFeature(aNew, false); + + static Events_Loop* aLoop = Events_Loop::loop(); + static Events_ID aDeleteEvent = aLoop->eventByName(EVENT_OBJECT_DELETED); + aLoop->flush(aDeleteEvent); + return aNew; } -- 2.39.2