Salome HOME
Update all attributes of circle when changing any (issue #1316)
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintVertical.cpp
index ecfc9177612f6f941b1ad4a98e219fea06a42c82..0520ca69ebca18eaeeeeda8364017347d5ea147b 100644 (file)
@@ -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;
 }