Fem: Fix file suffixes

*i1.txt or *o2.txt are not valid suffixes for a file dialog. In the past (until 2018) the suffixes were set to *.txt but this has been changed with 6fe8a881e.

To avoid creating invalid filenames the original suffixes are restored.
This commit is contained in:
wwmayer
2025-08-26 09:42:16 +02:00
committed by Chris Hennes
parent 802fd0b1ef
commit 99ad338d4b

View File

@@ -84,12 +84,10 @@ FreeCAD.addExportType(
"feminout.importYamlJsonMesh",
)
FreeCAD.addImportType("FEM mesh Z88 (*i1.txt *I1.TXT)", "feminout.importZ88Mesh")
FreeCAD.addExportType("FEM mesh Z88 (*i1.txt)", "feminout.importZ88Mesh")
FreeCAD.addImportType("FEM mesh Z88 (*.txt *.TXT)", "feminout.importZ88Mesh")
FreeCAD.addExportType("FEM mesh Z88 (*.txt)", "feminout.importZ88Mesh")
FreeCAD.addImportType(
"FEM result Z88 displacements (*o2.txt *O2.TXT)", "feminout.importZ88O2Results"
)
FreeCAD.addImportType("FEM result Z88 displacements (*.txt *.TXT)", "feminout.importZ88O2Results")
if "BUILD_FEM_VTK" in FreeCAD.__cmake__:
FreeCAD.addImportType(