if (!myUseSketchPlane) {
XGUI_Workshop* aWorkshop = XGUI_Tools::workshop(myWorkshop);
PartSet_Module* aModule = dynamic_cast<PartSet_Module*>(aWorkshop->module());
- aModule->sketchMgr()->activatePlaneFilter(false);
+ bool isUsePlaneFilterOnly = !toActivate;
+ aModule->sketchMgr()->activatePlaneFilter(isUsePlaneFilterOnly);
}
}
#include "SketchPlugin_IntersectionPoint.h"
#include <ModelAPI_AttributeSelection.h>
+#include <ModelAPI_Session.h>
+#include <ModelAPI_Validator.h>
#include <GeomAPI_Edge.h>
#include <GeomAPI_Lin.h>
void SketchPlugin_IntersectionPoint::initDerivedClassAttributes()
{
data()->addAttribute(EXTERNAL_LINE_ID(), ModelAPI_AttributeSelection::typeId());
+ ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), AUXILIARY_ID());
SketchPlugin_Point::initDerivedClassAttributes();
}