Salome HOME
Make nested sketch not displayed after dump in the neutral point.
[modules/shaper.git] / src / FeaturesAPI / FeaturesAPI_Revolution.cpp
index e073541390548852a3dfa017b25b74fdbc8e2f47..061a974579fceecd635db1d4124000c1a2af674a 100644 (file)
@@ -75,8 +75,11 @@ void FeaturesAPI_Revolution::setNestedSketch(const ModelHighAPI_Reference& theSk
 {
   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());