From: nds Date: Tue, 21 Jun 2016 12:00:16 +0000 (+0300) Subject: Correction for compsolid results in remove. X-Git-Tag: V_2.4.0~86 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b342fdc7ca71f93f3669f542dd4e4b684f0b850f;p=modules%2Fshaper.git Correction for compsolid results in remove. Wrong scenario: create Extrusion(Sketch with two circle that have common area), create Group, Select Face mode, Select common part, Apply, Extrusion->Delete. Warning does not appear about dependency of Group to this Extrusion --- diff --git a/src/Model/Model_Objects.cpp b/src/Model/Model_Objects.cpp index 2351c9835..1bb707676 100644 --- a/src/Model/Model_Objects.cpp +++ b/src/Model/Model_Objects.cpp @@ -195,8 +195,10 @@ void Model_Objects::refsToFeature(FeaturePtr theFeature, { // check the feature: it must have no depended objects on it // the dependencies can be in the feature results - std::list::const_iterator aResIter = theFeature->results().cbegin(); - for (; aResIter != theFeature->results().cend(); aResIter++) { + std::list aResults; + ModelAPI_Tools::allResults(theFeature, aResults); + std::list::const_iterator aResIter = aResults.cbegin(); + for (; aResIter != aResults.cend(); aResIter++) { ResultPtr aResult = (*aResIter); std::shared_ptr aData = std::dynamic_pointer_cast(aResult->data());