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-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=00ec88ecf1b4308c9218556919aa5de3b01d9b31;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 12ec6c4f9..eece28723 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();