#include <SketchPlugin_Sketch.h>
#include <SketcherPrs_Factory.h>
+//#include <SketcherPrs_Tools.h>
#include <Config_PropManager.h>
return thePrevious;
AISObjectPtr anAIS = thePrevious;
+
if (!anAIS) {
anAIS = SketcherPrs_Factory::horisontalConstraint(this, sketch()->coordinatePlane());
+ /*
+ ObjectPtr aObj = SketcherPrs_Tools::getResult(this, SketchPlugin_Constraint::ENTITY_A());
+ if (SketcherPrs_Tools::getShape(aObj).get() != NULL) {
+ anAIS = SketcherPrs_Factory::horisontalConstraint(this, sketch()->coordinatePlane());
+ }*/
}
+ /*else {
+ ObjectPtr aObj = SketcherPrs_Tools::getResult(this, SketchPlugin_Constraint::ENTITY_A());
+ if (SketcherPrs_Tools::getShape(aObj).get() == NULL) {
+ anAIS = AISObjectPtr();
+ }
+ }*/
return anAIS;
}