]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2683: Add selection type to Dump feature
authorvsv <vsv@opencascade.com>
Fri, 12 Oct 2018 13:34:26 +0000 (16:34 +0300)
committervsv <vsv@opencascade.com>
Fri, 12 Oct 2018 13:34:26 +0000 (16:34 +0300)
src/SHAPERGUI/SHAPERGUI_DataModel.cpp

index bccdab2615a50bd794729ec445efdd924833fb95..f3d8fe4b80e52e84994a69c359c49b3ab3a24358 100644 (file)
@@ -206,6 +206,11 @@ bool SHAPERGUI_DataModel::dumpPython(const QString& thePath, CAM_Study* theStudy
     aAttr = aFeature->string(ExchangePlugin_Dump::FILE_FORMAT_ID());
     if (aAttr.get())
       aAttr->setValue(".py");
+
+    AttributeStringPtr aTypeAttr = aFeature->string(ExchangePlugin_Dump::SELECTION_TYPE_ID());
+    if (aTypeAttr.get())
+      aTypeAttr->setValue(ExchangePlugin_Dump::TOPOLOGICAL_NAMING_DUMP_ID());
+
     ModelAPI_Session::get()->finishOperation();
 
     if (QFile::exists(aFileName.c_str())) {