]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_Update.cpp
Salome HOME
Fix for the issue #1556 : Part rebuilding issue
[modules/shaper.git] / src / Model / Model_Update.cpp
index 9784ceec319fb55b88d0309ce3ece7743ab7fc54..98d68fe1de38628d414990f2e1cdf42a052ac674 100755 (executable)
@@ -442,7 +442,7 @@ bool Model_Update::processFeature(FeaturePtr theFeature)
   bool isReferencedInvalid = false;
   // check all features this feature depended on (recursive call of updateFeature)
   std::set<FeaturePtr>& aReasons = myModified[theFeature];
-  bool allSubsUsed = aReasons.find(theFeature) == aReasons.end();
+  bool allSubsUsed = aReasons.find(theFeature) != aReasons.end();
   if (allSubsUsed) { // add all subs in aReasons and temporary remove "theFeature" to avoid processing itself
     allReasons(theFeature, aReasons);
     aReasons.erase(theFeature);
@@ -452,7 +452,7 @@ bool Model_Update::processFeature(FeaturePtr theFeature)
   while(!aReasons.empty()) {
     FeaturePtr aReason = *(aReasons.begin());
 #ifdef DEB_UPDATE
-    cout<<theFeature->name()<<" process next reason "<<aReason->name()<<endl;
+    //cout<<theFeature->name()<<" process next reason "<<aReason->name()<<endl;
 #endif
     if (aReason != theFeature && (aReason)->data()->isValid()) {
       if (processFeature(aReason))