]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/FeaturesAPI/FeaturesAPI_Extrusion.cpp
Salome HOME
Make nested sketch not displayed after dump in the neutral point.
[modules/shaper.git] / src / FeaturesAPI / FeaturesAPI_Extrusion.cpp
index 4692cc103806a99ae5ec38533c1996af2a3aa7ed..bb2cb99ac246ccbb05b103d702f8411de3d4af54 100644 (file)
@@ -114,8 +114,11 @@ void FeaturesAPI_Extrusion::setNestedSketch(const ModelHighAPI_Reference& theSke
 {
   mysketch->setValue(theSketch.feature());
   // to inform that the history is updated due to the sketch moved under the composite feature
-  if (theSketch.feature().get())
+  if (theSketch.feature().get()) {
     theSketch.feature()->document()->updateHistory(ModelAPI_Feature::group());
+    if (theSketch.feature()->firstResult().get())
+      theSketch.feature()->firstResult()->setDisplayed(false);
+  }
   mybaseObjects->clear();
   mybaseObjects->append(theSketch.feature()->firstResult(), GeomShapePtr());