-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2022 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
}
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 << ")" <<std::endl;
-//// }
+ // Set necessary "auxiliary" flag for created features
+ for (anIt = aList.begin(); anIt != aList.end(); ++anIt) {
+ FeaturePtr aFeature = (*anIt)->feature();
+ bool aFeatAux = aFeature->boolean(SketchPlugin_SketchEntity::AUXILIARY_ID())->value();
+ if (aFeatAux)
+ theDumper << theDumper.name((*anIt)->feature(), false)
+ << ".setAuxiliary(" << aFeatAux << ")" <<std::endl;
+ }
}