From 78b84f83615fa7d1030ebdc094c34672cf59cba7 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 5 Mar 2015 11:35:40 +0300 Subject: [PATCH] Construction elements are auxiliary entities: Preview of a construction element should not be visible outside the sketch --- src/SketchPlugin/SketchPlugin_Sketch.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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(); -- 2.39.2