Salome HOME
Fixed validators for Boolean and Intersection
[modules/shaper.git] / src / Model / Model_BodyBuilder.cpp
index fe1541286a3fe7c19cdbfb242a8fe12643b026e6..bfa8d62fe1a32d7a78b6a20dd77aa45c8e1e4172 100755 (executable)
@@ -393,7 +393,9 @@ void Model_BodyBuilder::loadAndOrientModifiedShapes (
         std::shared_ptr<GeomAPI_Shape> aMapShape(theSubShapes.find(*anIt));
         aNewShape.Orientation(aMapShape->impl<TopoDS_Shape>().Orientation());
       }
-      if(!aRoot.IsSame(aNewShape) && aResultShape->isSubShape(*anIt)) {
+      GeomShapePtr aGeomNewShape(new GeomAPI_Shape());
+      aGeomNewShape->setImpl(new TopoDS_Shape(aNewShape));
+      if(!aRoot.IsSame(aNewShape) && aResultShape->isSubShape(aGeomNewShape)) {
         builder(aTag)->Modify(aRoot,aNewShape);
         if(isBuilt) {
           if(theIsStoreSeparate) {