X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModel%2FModel_ResultConstruction.cpp;h=2998e9f2db8a4879186ed9cbb458051d027100d1;hb=32dbb28fad617a31eb5da8022149411e865eb634;hp=17b20df98dc4eff497b1eb03ed3bfbbbbaf72e09;hpb=ca24fe2f4587b2250b3297103290373c30ce9b71;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultConstruction.cpp b/src/Model/Model_ResultConstruction.cpp index 17b20df98..2998e9f2d 100644 --- a/src/Model/Model_ResultConstruction.cpp +++ b/src/Model/Model_ResultConstruction.cpp @@ -28,9 +28,9 @@ void Model_ResultConstruction::colorConfigInfo(std::string& theSection, std::str void Model_ResultConstruction::setShape(std::shared_ptr theShape) { - if (myShape != theShape) { + if (myShape != theShape && (!theShape.get() || !theShape->isEqual(myShape))) { myShape = theShape; - if (theShape.get() && (!myShape.get() || !theShape->isEqual(myShape))) { + if (theShape.get()) { myFacesUpToDate = false; myFaces.clear(); }