From 99ad338d4bc2f20c8effd107320965774b60c1c1 Mon Sep 17 00:00:00 2001 From: wwmayer Date: Tue, 26 Aug 2025 09:42:16 +0200 Subject: [PATCH] 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. --- src/Mod/Fem/Init.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Mod/Fem/Init.py b/src/Mod/Fem/Init.py index 7aca64a3b7..7da674c38d 100644 --- a/src/Mod/Fem/Init.py +++ b/src/Mod/Fem/Init.py @@ -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(