From: nds Date: Thu, 5 Mar 2015 08:35:40 +0000 (+0300) Subject: Construction elements are auxiliary entities: X-Git-Tag: V_1.1.0~147^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=78b84f83615fa7d1030ebdc094c34672cf59cba7;p=modules%2Fshaper.git Construction elements are auxiliary entities: Preview of a construction element should not be visible outside the sketch --- diff --git a/src/SketchPlugin/SketchPlugin_Sketch.cpp b/src/SketchPlugin/SketchPlugin_Sketch.cpp index 624ac16ab..f243c86c7 100644 --- a/src/SketchPlugin/SketchPlugin_Sketch.cpp +++ b/src/SketchPlugin/SketchPlugin_Sketch.cpp @@ -87,6 +87,11 @@ void SketchPlugin_Sketch::execute() if (aFeature->data()->selection(SketchPlugin_Feature::EXTERNAL_ID())->value()) continue; } + // do not include the construction entities in the result + if (aFeature->data()->attribute(SketchPlugin_Feature::CONSTRUCTION_ID())) { + if (aFeature->data()->boolean(SketchPlugin_Feature::CONSTRUCTION_ID())->value()) + continue; + } const std::list >& aRes = aFeature->results(); std::list >::const_iterator aResIter = aRes.cbegin();