Fix MED Reader

Assign same Mesh name into MED archive based on shortfilename during write and read operation
This commit is contained in:
vejmarie
2016-07-16 15:58:41 +02:00
committed by wmayer
parent d094d3e33f
commit fdc44af644
2 changed files with 2 additions and 2 deletions

View File

@@ -1172,7 +1172,7 @@ void FemMesh::write(const char *FileName) const
myMesh->ExportUNV(File.filePath().c_str());
}
else if (File.hasExtension("med") ) {
myMesh->ExportMED(File.filePath().c_str(),"FreeCADMesg",false,2); // 2 means MED_V2_2 version !
myMesh->ExportMED(File.filePath().c_str(),File.fileNamePure().c_str(),false,2); // 2 means MED_V2_2 version !
}
else if (File.hasExtension("stl") ) {
// read brep-file