]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the problem if disappeared sketch elements (on Apply) inside of sketch in...
authormpv <mpv@opencascade.com>
Wed, 11 May 2016 11:28:58 +0000 (14:28 +0300)
committermpv <mpv@opencascade.com>
Wed, 11 May 2016 11:28:58 +0000 (14:28 +0300)
src/Model/Model_Update.cpp

index 8f5359772248484064731113012ef1be47f7f02e..fc2f8dd98401f23f3bd4d2b68ae83c59d69e72dc 100755 (executable)
@@ -33,7 +33,7 @@
 using namespace std;
 
 Model_Update MY_UPDATER_INSTANCE;  /// the only one instance initialized on load of the library
-#define DEB_UPDATE
+//#define DEB_UPDATE
 
 Model_Update::Model_Update()
 {
@@ -476,7 +476,8 @@ bool Model_Update::processFeature(FeaturePtr theFeature)
 
   // this checking must be after the composite feature sub-elements processing:
   // composite feature status may depend on it's subelements
-  if (theFeature->data()->execState() == ModelAPI_StateInvalidArgument || isReferencedInvalid) {
+  if ((theFeature->data()->execState() == ModelAPI_StateInvalidArgument || isReferencedInvalid) && 
+    theFeature->getKind() != "Part") { // don't disable Part because it will make disabled all the features (performance and problems with the current feature)
   #ifdef DEB_UPDATE
     std::cout<<"Invalid args "<<theFeature->name()<<std::endl;
   #endif