X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_ConstraintEqual.cpp;h=1b80c0c6b050e16088bea1b496c263716c60a5f0;hb=af6247648ee46f0c5a829bc142b75b91254e410c;hp=00531acde1a652ade39dec6a05ea0489dfcc361b;hpb=3fe505b32b781f50db5a4332bd0594613ea94d09;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_ConstraintEqual.cpp b/src/SketchPlugin/SketchPlugin_ConstraintEqual.cpp index 00531acde..1b80c0c6b 100644 --- a/src/SketchPlugin/SketchPlugin_ConstraintEqual.cpp +++ b/src/SketchPlugin/SketchPlugin_ConstraintEqual.cpp @@ -23,8 +23,8 @@ SketchPlugin_ConstraintEqual::SketchPlugin_ConstraintEqual() void SketchPlugin_ConstraintEqual::initAttributes() { - data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::type()); - data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::type()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId()); + data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId()); } void SketchPlugin_ConstraintEqual::execute() @@ -37,7 +37,9 @@ AISObjectPtr SketchPlugin_ConstraintEqual::getAISObject(AISObjectPtr thePrevious return thePrevious; AISObjectPtr anAIS = thePrevious; - /// TODO: Equal constraint presentation should be put here + if (!anAIS) { + anAIS = SketcherPrs_Factory::equalConstraint(this, sketch()->coordinatePlane()); + } return anAIS; }