diff --git a/src/Gui/ApplicationPy.cpp b/src/Gui/ApplicationPy.cpp index d22bc29200..e81b89f648 100644 --- a/src/Gui/ApplicationPy.cpp +++ b/src/Gui/ApplicationPy.cpp @@ -583,8 +583,13 @@ PyObject* Application::sExport(PyObject * /*self*/, PyObject *args) QFileInfo fi; fi.setFile(fileName); QString ext = fi.suffix().toLower(); - if (ext == QLatin1String("iv") || ext == QLatin1String("wrl") || - ext == QLatin1String("vrml") || ext == QLatin1String("wrz")) { + if (ext == QLatin1String("iv") || + ext == QLatin1String("wrl") || + ext == QLatin1String("vrml") || + ext == QLatin1String("wrz") || + ext == QLatin1String("x3d") || + ext == QLatin1String("x3dz") || + ext == QLatin1String("xhtml")) { // build up the graph SoSeparator* sep = new SoSeparator(); diff --git a/src/Gui/FreeCADGuiInit.py b/src/Gui/FreeCADGuiInit.py index c84a82ca93..efe04edef7 100644 --- a/src/Gui/FreeCADGuiInit.py +++ b/src/Gui/FreeCADGuiInit.py @@ -205,6 +205,8 @@ FreeCAD.addImportType("VRML V2.0 (*.wrl *.vrml *.wrz *.wrl.gz)","FreeCADGui") FreeCAD.addImportType("Python (*.py *.FCMacro *.FCScript)","FreeCADGui") FreeCAD.addExportType("Inventor V2.1 (*.iv)","FreeCADGui") FreeCAD.addExportType("VRML V2.0 (*.wrl *.vrml *.wrz *.wrl.gz)","FreeCADGui") +FreeCAD.addExportType("X3D Extensible 3D (*.x3d *.x3dz)","FreeCADGui") +FreeCAD.addExportType("WebGL/X3D (*.xhtml)","FreeCADGui") #FreeCAD.addExportType("IDTF (for 3D PDF) (*.idtf)","FreeCADGui") #FreeCAD.addExportType("3D View (*.svg)","FreeCADGui") FreeCAD.addExportType("Portable Document Format (*.pdf)","FreeCADGui")