X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchSolver%2FSketchSolver_ConstraintMirror.cpp;h=b338983cadae47a19e8c0c6a78a4e8934452f601;hb=ae86330710c2a0f8d6b82ddb53fcba1707ecf9e4;hp=335997a2ed1979910353a93d7f6390b55114b6c3;hpb=17d8a9be9ff8975e7551160a82116a65e1203128;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver_ConstraintMirror.cpp b/src/SketchSolver/SketchSolver_ConstraintMirror.cpp index 335997a2e..b338983ca 100644 --- a/src/SketchSolver/SketchSolver_ConstraintMirror.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintMirror.cpp @@ -62,13 +62,6 @@ void SketchSolver_ConstraintMirror::getAttributes( myFeatures.insert(aFeature); } } - // add mirrored features to the list - aList = aMirroredRefList->list(); - for (anIt = aList.begin(); anIt != aList.end(); ++anIt) { - FeaturePtr aFeature = ModelAPI_Feature::feature(*anIt); - if (aFeature) - myFeatures.insert(aFeature); - } } void SketchSolver_ConstraintMirror::process() @@ -118,6 +111,10 @@ void SketchSolver_ConstraintMirror::adjustConstraint() FeaturePtr aBase = ModelAPI_Feature::feature(*aBIt); FeaturePtr aMirrored = ModelAPI_Feature::feature(*aMIt); mirrorEntities(aMirrorLine, aBase, aMirrored); + + // update mirrored entity if it exists in the storage + if (myStorage->entity(aMirrored)) + myStorage->update(aMirrored); } }