From: mpv Date: Wed, 26 Nov 2014 11:22:26 +0000 (+0300) Subject: Make Box sketch and extrusion updated on changing of the Box parameters in property... X-Git-Tag: V_0.7.0_rc1~57^2~3^2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1e92d337c3d62f0b3195ea58bea570a79be170e5;p=modules%2Fshaper.git Make Box sketch and extrusion updated on changing of the Box parameters in property panel --- diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index 8aa00217e..e7116df59 100644 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -80,6 +80,7 @@ void Model_Update::processEvent(const std::shared_ptr& theMessag std::set::const_iterator anObjIter = anObjs.cbegin(); for(; anObjIter != anObjs.cend(); anObjIter++) { myJustCreatedOrUpdated.insert(*anObjIter); + (*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 @@ -284,7 +285,9 @@ bool Model_Update::updateFeature(FeaturePtr theFeature) } else { // for automatically updated features (on abort, etc) it is necessary to redisplay anyway redisplayWithResults(theFeature); } - } 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++) {