Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c93c537
)
Issue #2683: Add selection type to Dump feature
author
vsv
<vsv@opencascade.com>
Fri, 12 Oct 2018 13:34:26 +0000
(16:34 +0300)
committer
vsv
<vsv@opencascade.com>
Fri, 12 Oct 2018 13:34:26 +0000
(16:34 +0300)
src/SHAPERGUI/SHAPERGUI_DataModel.cpp
patch
|
blob
|
history
diff --git
a/src/SHAPERGUI/SHAPERGUI_DataModel.cpp
b/src/SHAPERGUI/SHAPERGUI_DataModel.cpp
index bccdab2615a50bd794729ec445efdd924833fb95..f3d8fe4b80e52e84994a69c359c49b3ab3a24358 100644
(file)
--- a/
src/SHAPERGUI/SHAPERGUI_DataModel.cpp
+++ b/
src/SHAPERGUI/SHAPERGUI_DataModel.cpp
@@
-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())) {