Salome HOME
Merge branch 'Dev_1.1.0' of newgeom:newgeom into Dev_1.1.0
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintVertical.cpp
index ecfc9177612f6f941b1ad4a98e219fea06a42c82..d5865e6ab3c14aafc6e2bb7da8fd13b75c992cd2 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()
@@ -36,7 +36,9 @@ AISObjectPtr SketchPlugin_ConstraintVertical::getAISObject(AISObjectPtr thePrevi
     return thePrevious;
 
   AISObjectPtr anAIS = thePrevious;
-  /// TODO: Horizontal constraint presentation should be put here
+  if (!anAIS) {
+    anAIS = SketcherPrs_Factory::verticalConstraint(this, sketch()->coordinatePlane());
+  }
   return anAIS;
 }