]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/FeaturesAPI/FeaturesAPI_ExtrusionBoolean.cpp
Salome HOME
Make nested sketch not displayed after dump in the neutral point.
[modules/shaper.git] / src / FeaturesAPI / FeaturesAPI_ExtrusionBoolean.cpp
index 386afe55423f87ba697a6e44da4d303a24dd9bd9..26307f4e76ac968af5d5e0d022fa4da9bef78efe 100644 (file)
@@ -27,8 +27,11 @@ void FeaturesAPI_ExtrusionBoolean::setNestedSketch(const ModelHighAPI_Reference&
 {
   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());