Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de16c21
)
Fix the problem of not previewed results of constraints applied. Flash Delete (for...
author
mpv
<mpv@opencascade.com>
Fri, 31 Mar 2017 13:36:17 +0000
(16:36 +0300)
committer
mpv
<mpv@opencascade.com>
Fri, 31 Mar 2017 13:36:17 +0000
(16:36 +0300)
src/SketchPlugin/SketchPlugin_Sketch.cpp
patch
|
blob
|
history
diff --git
a/src/SketchPlugin/SketchPlugin_Sketch.cpp
b/src/SketchPlugin/SketchPlugin_Sketch.cpp
index 04cf7331b55d84b1c7fdb5c4f5be0e828ad3c150..91fddccd708bade99ca94b5ec1bc8b51653dec3c 100755
(executable)
--- a/
src/SketchPlugin/SketchPlugin_Sketch.cpp
+++ b/
src/SketchPlugin/SketchPlugin_Sketch.cpp
@@
-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;
}