From: azv Date: Tue, 23 Aug 2016 13:44:57 +0000 (+0300) Subject: Do not dump "model.do()" if no one sub-feature of composite feature has been dumped X-Git-Tag: V_2.5.0~137^2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8a6606181be4b151f27d59cf4d77beb74695fbfd;p=modules%2Fshaper.git Do not dump "model.do()" if no one sub-feature of composite feature has been dumped --- diff --git a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp index 633984d81..5ec70a34b 100644 --- a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp @@ -254,12 +254,14 @@ bool ModelHighAPI_Dumper::processSubs(const std::shared_ptrnumberOfSubs(); for (int anIndex = 0; anIndex < aNbSubs; ++anIndex) { FeaturePtr aFeature = theComposite->subFeature(anIndex); if (isDumped(aFeature)) continue; + isSubDumped = true; CompositeFeaturePtr aCompFeat = std::dynamic_pointer_cast(aFeature); if (aCompFeat) // iteratively process composite features isOk = process(aCompFeat) && isOk; @@ -269,7 +271,7 @@ bool ModelHighAPI_Dumper::processSubs(const std::shared_ptr