X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_ConstraintVertical.cpp;h=0520ca69ebca18eaeeeeda8364017347d5ea147b;hb=eff4b9f47ed1d703c54830b51681eeab7021aaf0;hp=ecfc9177612f6f941b1ad4a98e219fea06a42c82;hpb=3fe505b32b781f50db5a4332bd0594613ea94d09;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_ConstraintVertical.cpp b/src/SketchPlugin/SketchPlugin_ConstraintVertical.cpp index ecfc91776..0520ca69e 100644 --- a/src/SketchPlugin/SketchPlugin_ConstraintVertical.cpp +++ b/src/SketchPlugin/SketchPlugin_ConstraintVertical.cpp @@ -23,7 +23,7 @@ SketchPlugin_ConstraintVertical::SketchPlugin_ConstraintVertical() void SketchPlugin_ConstraintVertical::initAttributes() { - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::type()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); } void SketchPlugin_ConstraintVertical::execute() @@ -35,8 +35,8 @@ AISObjectPtr SketchPlugin_ConstraintVertical::getAISObject(AISObjectPtr thePrevi if (!sketch()) return thePrevious; - AISObjectPtr anAIS = thePrevious; - /// TODO: Horizontal constraint presentation should be put here + AISObjectPtr anAIS = SketcherPrs_Factory::verticalConstraint(this, sketch()->coordinatePlane(), + thePrevious); return anAIS; }