From: mpv Date: Tue, 11 Apr 2017 14:20:27 +0000 (+0300) Subject: Fix for #2129 : even the resulting compound of edges is geometrically same, topology... X-Git-Tag: V_2.7.0~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0618503c0f08ef6e5e712fd5d6781b31016d0960;p=modules%2Fshaper.git Fix for #2129 : even the resulting compound of edges is geometrically same, topology may be different, so selected faces in sketch must be updated to use the same curves. --- diff --git a/src/Model/Model_ResultConstruction.cpp b/src/Model/Model_ResultConstruction.cpp index f41b2ba3d..bd101b602 100644 --- a/src/Model/Model_ResultConstruction.cpp +++ b/src/Model/Model_ResultConstruction.cpp @@ -49,9 +49,11 @@ void Model_ResultConstruction::colorConfigInfo(std::string& theSection, std::str void Model_ResultConstruction::setShape(std::shared_ptr 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;