]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for #2129 : even the resulting compound of edges is geometrically same, topology...
authormpv <mpv@opencascade.com>
Tue, 11 Apr 2017 14:20:27 +0000 (17:20 +0300)
committermpv <mpv@opencascade.com>
Tue, 11 Apr 2017 14:20:27 +0000 (17:20 +0300)
src/Model/Model_ResultConstruction.cpp

index f41b2ba3de4a186fdde9af4335929dc11564ad50..bd101b6025c2f8965e8d17877dd3ef6ae636b541 100644 (file)
@@ -49,9 +49,11 @@ void Model_ResultConstruction::colorConfigInfo(std::string& theSection, std::str
 
 void Model_ResultConstruction::setShape(std::shared_ptr<GeomAPI_Shape> theShape)
 {
-  if (myShape != theShape && (!theShape.get() || !theShape->isEqual(myShape))) {
-    static const Events_ID anEvent = Events_Loop::eventByName(EVENT_OBJECT_UPDATED);
-    ModelAPI_EventCreator::get()->sendUpdated(data()->owner(), anEvent);
+  if (myShape != theShape) {
+    if (!theShape.get() || !theShape->isEqual(myShape)) {
+        static const Events_ID anEvent = Events_Loop::eventByName(EVENT_OBJECT_UPDATED);
+        ModelAPI_EventCreator::get()->sendUpdated(data()->owner(), anEvent);
+    }
     myShape = theShape;
     if (theShape.get()) {
       myFacesUpToDate = false;