- ObjectPtr aObj = SketcherPrs_Tools::getResult(myConstraint, SketchPlugin_Constraint::ENTITY_A());
- if (SketcherPrs_Tools::getShape(aObj).get() == NULL)
+ bool aReadyToDisplay = false;
+ ObjectPtr aObj =
+ SketcherPrs_Tools::getResult(theConstraint, SketchPlugin_Constraint::ENTITY_A());
+
+ aReadyToDisplay = SketcherPrs_Tools::getShape(aObj).get() != NULL;
+ return aReadyToDisplay;
+}
+
+bool SketcherPrs_HVDirection::updateIfReadyToDisplay(double theStep, bool withColor) const
+{
+ if (!IsReadyToDisplay(myConstraint, myPlane))