From: nds Date: Fri, 26 Feb 2016 06:06:53 +0000 (+0300) Subject: #1340 Filter for edges outside sketch plane X-Git-Tag: V_2.2.0~62 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=29659910b0ea11d82a691db29953c47b68137efc;p=modules%2Fshaper.git #1340 Filter for edges outside sketch plane --- diff --git a/src/PartSet/PartSet_WidgetShapeSelector.cpp b/src/PartSet/PartSet_WidgetShapeSelector.cpp index 8bc3368bd..305337337 100755 --- a/src/PartSet/PartSet_WidgetShapeSelector.cpp +++ b/src/PartSet/PartSet_WidgetShapeSelector.cpp @@ -48,7 +48,8 @@ void PartSet_WidgetShapeSelector::activateSelectionAndFilters(bool toActivate) if (!myUseSketchPlane) { XGUI_Workshop* aWorkshop = XGUI_Tools::workshop(myWorkshop); PartSet_Module* aModule = dynamic_cast(aWorkshop->module()); - aModule->sketchMgr()->activatePlaneFilter(false); + bool isUsePlaneFilterOnly = !toActivate; + aModule->sketchMgr()->activatePlaneFilter(isUsePlaneFilterOnly); } } diff --git a/src/SketchPlugin/SketchPlugin_IntersectionPoint.cpp b/src/SketchPlugin/SketchPlugin_IntersectionPoint.cpp index 23b4d018d..3643b3ca7 100644 --- a/src/SketchPlugin/SketchPlugin_IntersectionPoint.cpp +++ b/src/SketchPlugin/SketchPlugin_IntersectionPoint.cpp @@ -7,6 +7,8 @@ #include "SketchPlugin_IntersectionPoint.h" #include +#include +#include #include #include @@ -20,6 +22,7 @@ SketchPlugin_IntersectionPoint::SketchPlugin_IntersectionPoint() void SketchPlugin_IntersectionPoint::initDerivedClassAttributes() { data()->addAttribute(EXTERNAL_LINE_ID(), ModelAPI_AttributeSelection::typeId()); + ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), AUXILIARY_ID()); SketchPlugin_Point::initDerivedClassAttributes(); }