From: Artem Zhidkov Date: Mon, 15 Feb 2021 20:52:59 +0000 (+0300) Subject: Dump "auxiliary" flag for offset geometry X-Git-Tag: V9_7_0a1~37 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=25dd17618de110a874968f1436c9c1a88c7a7f56;p=modules%2Fshaper.git Dump "auxiliary" flag for offset geometry --- diff --git a/src/SketchAPI/SketchAPI_Offset.cpp b/src/SketchAPI/SketchAPI_Offset.cpp index 392d07fe0..5d4e4a4b8 100644 --- a/src/SketchAPI/SketchAPI_Offset.cpp +++ b/src/SketchAPI/SketchAPI_Offset.cpp @@ -93,13 +93,12 @@ void SketchAPI_Offset::dump (ModelHighAPI_Dumper& theDumper) const } theDumper << "] = " << theDumper.name(aBase) << ".offset()" << std::endl; -//// // Set necessary "auxiliary" flag for created features -//// // (flag is set if it differs to anAux) -//// for (anIt = aList.begin(); anIt != aList.end(); ++anIt) { -//// FeaturePtr aFeature = (*anIt)->feature(); -//// bool aFeatAux = aFeature->boolean(SketchPlugin_SketchEntity::AUXILIARY_ID())->value(); -//// if (aFeatAux != anAux->value()) -//// theDumper << theDumper.name((*anIt)->feature(), false) -//// << ".setAuxiliary(" << aFeatAux << ")" <feature(); + bool aFeatAux = aFeature->boolean(SketchPlugin_SketchEntity::AUXILIARY_ID())->value(); + if (aFeatAux) + theDumper << theDumper.name((*anIt)->feature(), false) + << ".setAuxiliary(" << aFeatAux << ")" <