From b342fdc7ca71f93f3669f542dd4e4b684f0b850f Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 21 Jun 2016 15:00:16 +0300 Subject: [PATCH] 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 --- src/Model/Model_Objects.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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()); -- 2.39.2