From 8a6606181be4b151f27d59cf4d77beb74695fbfd Mon Sep 17 00:00:00 2001 From: azv Date: Tue, 23 Aug 2016 16:44:57 +0300 Subject: [PATCH] Do not dump "model.do()" if no one sub-feature of composite feature has been dumped --- src/ModelHighAPI/ModelHighAPI_Dumper.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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