From 1e92d337c3d62f0b3195ea58bea570a79be170e5 Mon Sep 17 00:00:00 2001 From: mpv Date: Wed, 26 Nov 2014 14:22:26 +0300 Subject: [PATCH] Make Box sketch and extrusion updated on changing of the Box parameters in property panel --- src/Model/Model_Update.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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++) { -- 2.39.2