Salome HOME
Copyright update 2022
[modules/shaper.git] / src / SketchAPI / SketchAPI_Offset.cpp
index 392d07fe0d1b653b6cde1212f6b4896fb4061159..d23d153ffaa97e94cf4bb4eda0cc9111888537b6 100644 (file)
@@ -1,4 +1,4 @@
-// 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
@@ -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 << ")" <<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;
+  }
 }