X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FSketchPlugin%2FSketchPlugin_Point.cpp;h=798140611b2755a7b86248a055617fa84aed4e44;hb=51889d235a27d0ee4b3c3237d21d1ea621063580;hp=97c74f4760dbfc4f52e4e3bab14563effcd24c5f;hpb=869145c3cd63a59f3d37f7b3d24d3b99afdc2bce;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_Point.cpp b/src/SketchPlugin/SketchPlugin_Point.cpp index 97c74f476..798140611 100644 --- a/src/SketchPlugin/SketchPlugin_Point.cpp +++ b/src/SketchPlugin/SketchPlugin_Point.cpp @@ -21,11 +21,14 @@ using namespace std; SketchPlugin_Point::SketchPlugin_Point() + : SketchPlugin_SketchEntity() { } void SketchPlugin_Point::initAttributes() { + SketchPlugin_SketchEntity::initAttributes(); + data()->addAttribute(SketchPlugin_Point::COORD_ID(), GeomDataAPI_Point2D::type()); data()->addAttribute(EXTERNAL_ID(), ModelAPI_AttributeSelection::type()); ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), EXTERNAL_ID()); @@ -70,7 +73,7 @@ double SketchPlugin_Point::distanceToPoint(const std::shared_ptr& } bool SketchPlugin_Point::isFixed() { - return data()->selection(EXTERNAL_ID())->context(); + return data()->selection(EXTERNAL_ID())->context().get(); } void SketchPlugin_Point::attributeChanged(const std::string& theID) {