]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #955
authormpv <mpv@opencascade.com>
Mon, 14 Sep 2015 05:07:48 +0000 (08:07 +0300)
committermpv <mpv@opencascade.com>
Mon, 14 Sep 2015 05:07:48 +0000 (08:07 +0300)
src/Model/Model_Update.cpp

index 93205e353fbcb3c23a4b50db0c7326f1256e6acc..2a1062a8f30213e786c137b7492dc2ef5c1c8166 100644 (file)
@@ -217,6 +217,7 @@ void Model_Update::iterateUpdateBreak(std::shared_ptr<ModelAPI_Feature> theFeatu
 void Model_Update::processOperation(const bool theTotalUpdate, const bool theFinish)
 {
   if (theFinish) {
+    /*
     // the hardcode (DBC asked): hide the sketch referenced by extrusion on apply
     std::set<std::shared_ptr<ModelAPI_Object> >::iterator aFIter;
     for(aFIter = myWaitForFinish.begin(); aFIter != myWaitForFinish.end(); aFIter++)
@@ -234,7 +235,7 @@ void Model_Update::processOperation(const bool theTotalUpdate, const bool theFin
           }
         }
       }
-    }
+    }*/
   }
   // perform update of everything if needed
   if (!myIsExecuted) {
@@ -298,7 +299,9 @@ void Model_Update::updateFeature(FeaturePtr theFeature)
     if (!iterateUpdate(aCompos))
       return; // iteration was interrupted, so, interrupt the update of this feature (it will be done later)
     // reupdate arguments of composite feature: it may be changed during subs execution
-    if (theFeature->data()->execState() != ModelAPI_StateMustBeUpdated)
+
+    // issue 955: extrusion fuse sketch naming must be updated after the sketch update 
+    // so, comment this: if (theFeature->data()->execState() != ModelAPI_StateMustBeUpdated)
       updateArguments(theFeature);
   }
   // this checking must be after the composite feature sub-elements processing: