X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_Rigid.cpp;h=d552f06f16fee4b4a679068319ff6b5e1b4b6d63;hb=c02fae5493cc6d56c9a1db3bdcf6d872f88fea07;hp=9ecca54e4a3caa20e6cda911e0b2cf70db6a1ceb;hpb=97917d3698f5a2f7fc9596e7c755ff8f6751e373;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Rigid.cpp b/src/SketcherPrs/SketcherPrs_Rigid.cpp index 9ecca54e4..d552f06f1 100644 --- a/src/SketcherPrs/SketcherPrs_Rigid.cpp +++ b/src/SketcherPrs/SketcherPrs_Rigid.cpp @@ -80,7 +80,7 @@ bool SketcherPrs_Rigid::IsReadyToDisplay(ModelAPI_Feature* theConstraint, bool SketcherPrs_Rigid::updateIfReadyToDisplay(double theStep, bool withColor) const { - if (!IsReadyToDisplay(myConstraint, myPlane)) + if (!IsReadyToDisplay(myConstraint, plane())) return false; myPntArray = new Graphic3d_ArrayOfPoints(1, withColor); @@ -99,7 +99,7 @@ bool SketcherPrs_Rigid::updateIfReadyToDisplay(double theStep, bool withColor) c // The constraint attached to a point std::shared_ptr aPnt = SketcherPrs_Tools::getPoint(myConstraint, SketchPlugin_Constraint::ENTITY_A()); - std::shared_ptr aPoint = myPlane->to3D(aPnt->x(), aPnt->y() + theStep); + std::shared_ptr aPoint = plane()->to3D(aPnt->x(), aPnt->y() + theStep); myPntArray->AddVertex(aPoint->impl()); } return true;