]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#1371 Using auxilliary Sketch elements in any Feature: sketch always has a preview...
authornds <nds@opencascade.com>
Mon, 28 Mar 2016 10:00:42 +0000 (13:00 +0300)
committerdbv <dbv@opencascade.com>
Wed, 6 Apr 2016 10:25:14 +0000 (13:25 +0300)
src/SketchPlugin/SketchPlugin_Sketch.cpp

index 8b84e897161fd432e1658c0bbcc2641e1741e59b..0e2b9acd367eb776c13ed5cf18654e5bfb671b5b 100644 (file)
@@ -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<GeomAPI_PlanarEdges> aBigWire(new GeomAPI_PlanarEdges);
   std::list<std::shared_ptr<GeomAPI_Shape> >::const_iterator aShapeIt = aFeaturesPreview.begin();