]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/FeaturesAPI/FeaturesAPI_ExtrusionBoolean.cpp
Salome HOME
Fix of crash of execution of some python scripts in GUI. This allows to update OB...
[modules/shaper.git] / src / FeaturesAPI / FeaturesAPI_ExtrusionBoolean.cpp
index d384af987bf6d0650a671eb191f7155a4515f10d..386afe55423f87ba697a6e44da4d303a24dd9bd9 100644 (file)
@@ -26,6 +26,9 @@ FeaturesAPI_ExtrusionBoolean::~FeaturesAPI_ExtrusionBoolean()
 void FeaturesAPI_ExtrusionBoolean::setNestedSketch(const ModelHighAPI_Reference& theSketch)
 {
   mysketch->setValue(theSketch.feature());
+  // to inform that the history is updated due to the sketch moved under the composite feature
+  if (theSketch.feature().get())
+    theSketch.feature()->document()->updateHistory(ModelAPI_Feature::group());
   mybaseObjects->clear();
   mybaseObjects->append(theSketch.feature()->firstResult(), GeomShapePtr());