return aReadyToDisplay;
}
-bool SketcherPrs_Mirror::updatePoints(double theStep) const
+bool SketcherPrs_Mirror::updateIfReadyToDisplay(double theStep) const
{
if (!IsReadyToDisplay(myConstraint, myPlane))
return false;
// get position for each source object
for (i = 0; i < aNb; i++) {
aObj = anAttrB->object(i);
+ if (SketcherPrs_Tools::getShape(aObj).get() == NULL)
+ continue;
aP1 = aMgr->getPosition(aObj, this, theStep);
myPntArray->SetVertice(i + 1, aP1);
}
// 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);
}