X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_Update.cpp;h=91751aa772becc664787e5ce6007dfe6f0c17507;hb=7ba8e2b57ff8965ae644b538c167b7b301e6e41b;hp=3a70e463a2b8a73b74c16cc938fa877ce197f907;hpb=18ce00a0069b7528801b0c7f38c7ec148836fd2b;p=modules%2Fshaper.git diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index 3a70e463a..91751aa77 100644 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: Model_Update.cxx // Created: 25 Jun 2014 // Author: Mikhail PONIKAROV @@ -80,6 +82,8 @@ void Model_Update::processEvent(const std::shared_ptr& theMessag std::set::const_iterator anObjIter = anObjs.cbegin(); for(; anObjIter != anObjs.cend(); anObjIter++) { myJustCreatedOrUpdated.insert(*anObjIter); + // TODO(mpv): check the next line. Came into dev 0.6.1 from BR_PYTHON_PLUGIN + // (*anObjIter)->data()->mustBeUpdated(true); // object must be updated because it was changed } if (theMessage->eventID() == kMovedEvent) return; // this event is for solver update, not here @@ -327,7 +331,9 @@ bool Model_Update::updateFeature(FeaturePtr theFeature) } else { // for automatically updated features (on abort, etc) it is necessary to redisplay anyway redisplayWithResults(theFeature, ModelAPI_StateNothing); } - } else { // returns also true is results were updated: for sketch that refers to sub-features but results of sub-features were changed + } else { + // returns also true is results were updated: for sketch that + // refers to sub-features but results of sub-features were changed const std::list >& aResults = theFeature->results(); std::list >::const_iterator aRIter = aResults.begin(); for (; aRIter != aResults.cend(); aRIter++) {