X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_Mirror.cpp;h=30bbc6ec33ceba0d29740ace179e984cf1bf37bf;hb=4a28151d74257f3a0d07af1b2270b76105e27e62;hp=7218e9ead3043018dd2cc8336ef35e36319be19c;hpb=51f9a2d4ddb07cb536d1bfef694995b81e4079af;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Mirror.cpp b/src/SketcherPrs/SketcherPrs_Mirror.cpp index 7218e9ead..30bbc6ec3 100644 --- a/src/SketcherPrs/SketcherPrs_Mirror.cpp +++ b/src/SketcherPrs/SketcherPrs_Mirror.cpp @@ -57,7 +57,7 @@ bool SketcherPrs_Mirror::IsReadyToDisplay(ModelAPI_Feature* theConstraint, return aReadyToDisplay; } -bool SketcherPrs_Mirror::updatePoints(double theStep) const +bool SketcherPrs_Mirror::updateIfReadyToDisplay(double theStep) const { if (!IsReadyToDisplay(myConstraint, myPlane)) return false; @@ -89,6 +89,8 @@ bool SketcherPrs_Mirror::updatePoints(double theStep) const // Get position of each mirrored object for (i = 0; i < aNb; i++) { aObj = anAttrC->object(i); + if (SketcherPrs_Tools::getShape(aObj).get() == NULL) + continue; aP1 = aMgr->getPosition(aObj, this, theStep); myPntArray->SetVertice(aNb + i + 1, aP1); }