]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #2910 : Undo some changes in the middle of the history line makes...
authormpv <mpv@opencascade.com>
Wed, 17 Apr 2019 12:29:34 +0000 (15:29 +0300)
committervsr <vsr@opencascade.com>
Tue, 23 Apr 2019 10:38:36 +0000 (13:38 +0300)
src/ConstructionPlugin/ConstructionPlugin_Axis.h
src/ConstructionPlugin/ConstructionPlugin_Plane.h
src/ConstructionPlugin/ConstructionPlugin_Point.h
src/Model/Model_Update.cpp

index 9685eebffa3fcf68bd31fd2244304fe88788a929..63381d1ac5c1837b1b8682b41e04f26b207e702b 100644 (file)
@@ -246,9 +246,6 @@ class ConstructionPlugin_Axis : public ModelAPI_Feature, public GeomAPI_ICustomP
   /// Request for initialization of data model of the feature: adding all attributes
   CONSTRUCTIONPLUGIN_EXPORT virtual void initAttributes();
 
-  /// Construction result is allways recomuted on the fly
-  CONSTRUCTIONPLUGIN_EXPORT virtual bool isPersistentResult() {return false;}
-
   /// Use plugin manager for features creation
   ConstructionPlugin_Axis();
 
index b1e01060984e2a291300185fa6bf8ff3a2c1449b..ce66bb66f32ae2d1ecc6e0c9c759398f5ee387aa 100644 (file)
@@ -251,9 +251,6 @@ public:
   /// Request for initialization of data model of the feature: adding all attributes
   CONSTRUCTIONPLUGIN_EXPORT virtual void initAttributes();
 
-  /// Construction result is always recomputed on the fly
-  CONSTRUCTIONPLUGIN_EXPORT virtual bool isPersistentResult() {return false;}
-
   /// Use plugin manager for features creation
   ConstructionPlugin_Plane();
 
index 3ab79c2f39300dfd787dfd9123ea57cef34c85a4..439805742a9959d329c71ed480c24d822bbc1051 100644 (file)
@@ -324,9 +324,6 @@ public:
   /// Request for initialization of data model of the feature: adding all attributes.
   CONSTRUCTIONPLUGIN_EXPORT virtual void initAttributes();
 
-  /// Construction result is allways recomuted on the fly.
-  CONSTRUCTIONPLUGIN_EXPORT virtual bool isPersistentResult() {return false;}
-
   /// Use plugin manager for features creation
   ConstructionPlugin_Point();
 
index bfd0bc3fce34d174d69672b64718bf07930c558c..07f87c3edadc54194c031f07628d568c490c5fbe 100644 (file)
@@ -722,10 +722,8 @@ bool Model_Update::processFeature(FeaturePtr theFeature)
       if (myUpdateBlocked) {
         if (!theFeature->isStable()) {
           aDoExecute = true;
-        } else if (theFeature->results().size()) { // execute only not-results features
-          aDoExecute = !(theFeature->firstResult()->groupName() == ModelAPI_ResultBody::group() ||
-            theFeature->firstResult()->groupName() == ModelAPI_ResultPart::group() ||
-            theFeature->getKind() == "Sketch");
+        } else if (theFeature->results().size()) { // execute only not persistent results features
+          aDoExecute = !theFeature->isPersistentResult();
         } else {
           aDoExecute = aState != ModelAPI_StateInvalidArgument;
         }