Salome HOME
Speed up undo-redo and document loading: do not recompute persistence-based features .
[modules/shaper.git] / src / Model / Model_Document.h
index 4b33be6af7044e11e3edd715c35eb1dfc82f692f..b6358eb4f18f44a03bd781f75483020d3e404a25 100644 (file)
@@ -201,7 +201,10 @@ class Model_Document : public ModelAPI_Document
 
   ///! Returns true if parametric updater need to execute feature on recomputartion
   ///! On abort, undo or redo it is not necessary: results in document are updated automatically
-  bool& executeFeatures() {return myExecuteFeatures;}
+  bool executeFeatures() {return myExecuteFeatures;}
+
+  ///! On abort, undo or redo it is not necessary: results in document are updated automatically
+  void setExecuteFeatures(const bool theFlag);
 
   //! Registers the name of the shape for the topological naming needs
   void addNamingName(const TDF_Label theLabel, std::string theName);