X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_Rigid.cpp;h=082ab5cfc6bfde3476b3d6461ce1a7a623069b91;hb=9968ec652480079d0ca91b2040f6327a164807cf;hp=71122d431a4e0df0030e417815e0cf9bd60c23c8;hpb=cd6bf982e7dc443e050e4d93b4954951daebcf15;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Rigid.cpp b/src/SketcherPrs/SketcherPrs_Rigid.cpp index 71122d431..082ab5cfc 100644 --- a/src/SketcherPrs/SketcherPrs_Rigid.cpp +++ b/src/SketcherPrs/SketcherPrs_Rigid.cpp @@ -41,10 +41,7 @@ SketcherPrs_Rigid::SketcherPrs_Rigid(ModelAPI_Feature* theConstraint, const std::shared_ptr& thePlane) : SketcherPrs_SymbolPrs(theConstraint, thePlane) { - // Set default points array - myPntArray = new Graphic3d_ArrayOfPoints(1); - myPntArray->AddVertex(0., 0., 0.); -} +} bool SketcherPrs_Rigid::IsReadyToDisplay(ModelAPI_Feature* theConstraint, const std::shared_ptr& thePlane) @@ -68,7 +65,7 @@ bool SketcherPrs_Rigid::IsReadyToDisplay(ModelAPI_Feature* theConstraint, return aReadyToDisplay; } -bool SketcherPrs_Rigid::updatePoints(double theStep) const +bool SketcherPrs_Rigid::updateIfReadyToDisplay(double theStep) const { if (!IsReadyToDisplay(myConstraint, myPlane)) return false;