From: mpv Date: Fri, 31 Mar 2017 13:36:17 +0000 (+0300) Subject: Fix the problem of not previewed results of constraints applied. Flash Delete (for... X-Git-Tag: V_2.7.0~113 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f3fe84b84646ce3ece6e0fd1511cacdae29c7765;p=modules%2Fshaper.git 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. --- 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; }