From: nds Date: Mon, 28 Mar 2016 10:00:42 +0000 (+0300) Subject: #1371 Using auxilliary Sketch elements in any Feature: sketch always has a preview... X-Git-Tag: V_2.3.0~315 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9cdefba38efa06abf7d107dffeba24fb0c02933b;p=modules%2Fshaper.git #1371 Using auxilliary Sketch elements in any Feature: sketch always has a preview in order to see auxiliary/construction elements in the viewer. --- diff --git a/src/SketchPlugin/SketchPlugin_Sketch.cpp b/src/SketchPlugin/SketchPlugin_Sketch.cpp index 8b84e8971..0e2b9acd3 100644 --- a/src/SketchPlugin/SketchPlugin_Sketch.cpp +++ b/src/SketchPlugin/SketchPlugin_Sketch.cpp @@ -110,13 +110,6 @@ void SketchPlugin_Sketch::execute() } } - if (aFeaturesPreview.empty()) { - // no good features for generation of preview => erase result if exists - if (firstResult().get() && !firstResult()->isDisabled()) - removeResults(0, false); - return; - } - // Collect all edges as one big wire std::shared_ptr aBigWire(new GeomAPI_PlanarEdges); std::list >::const_iterator aShapeIt = aFeaturesPreview.begin();