]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix the problem of not previewed results of constraints applied. Flash Delete (for...
authormpv <mpv@opencascade.com>
Fri, 31 Mar 2017 13:36:17 +0000 (16:36 +0300)
committermpv <mpv@opencascade.com>
Fri, 31 Mar 2017 13:36:17 +0000 (16:36 +0300)
src/SketchPlugin/SketchPlugin_Sketch.cpp

index 04cf7331b55d84b1c7fdb5c4f5be0e828ad3c150..91fddccd708bade99ca94b5ec1bc8b51653dec3c 100755 (executable)
@@ -139,6 +139,11 @@ std::shared_ptr<ModelAPI_Feature> 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;
 }