X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_Equal.cpp;h=74ed7d4db3ea51a21d4706146cc75e9066a6071b;hb=471cc7b52168016a3b6fff7e64cdd800cd7d8f91;hp=ff5e21f101139ddfeb2aeb7a73b4a717f15d04cd;hpb=cd6bf982e7dc443e050e4d93b4954951daebcf15;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Equal.cpp b/src/SketcherPrs/SketcherPrs_Equal.cpp index ff5e21f10..74ed7d4db 100644 --- a/src/SketcherPrs/SketcherPrs_Equal.cpp +++ b/src/SketcherPrs/SketcherPrs_Equal.cpp @@ -10,8 +10,6 @@ #include -#include "Events_Error.h" - #include #include @@ -44,11 +42,10 @@ bool SketcherPrs_Equal::IsReadyToDisplay(ModelAPI_Feature* theConstraint, return aReadyToDisplay; } -bool SketcherPrs_Equal::updatePoints(double theStep) const +bool SketcherPrs_Equal::updateIfReadyToDisplay(double theStep) const { - if (!IsReadyToDisplay(myConstraint, myPlane)) { + if (!IsReadyToDisplay(myConstraint, myPlane)) return false; - } ObjectPtr aObj1 = SketcherPrs_Tools::getResult(myConstraint, SketchPlugin_Constraint::ENTITY_A()); ObjectPtr aObj2 = SketcherPrs_Tools::getResult(myConstraint, SketchPlugin_Constraint::ENTITY_B());