]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Correction for compsolid results in remove.
authornds <nds@opencascade.com>
Tue, 21 Jun 2016 12:00:16 +0000 (15:00 +0300)
committernds <nds@opencascade.com>
Tue, 21 Jun 2016 12:00:16 +0000 (15:00 +0300)
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

index 2351c98354891f66baaa69fac77dc1580658c3e7..1bb70767645a98bcddd7974d21ef481d55343b43 100644 (file)
@@ -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<ResultPtr>::const_iterator aResIter = theFeature->results().cbegin();
-  for (; aResIter != theFeature->results().cend(); aResIter++) {
+  std::list<ResultPtr> aResults;
+  ModelAPI_Tools::allResults(theFeature, aResults);
+  std::list<ResultPtr>::const_iterator aResIter = aResults.cbegin();
+  for (; aResIter != aResults.cend(); aResIter++) {
     ResultPtr aResult = (*aResIter);
     std::shared_ptr<Model_Data> aData = 
         std::dynamic_pointer_cast<Model_Data>(aResult->data());