Gui: [skip ci] add x3d and xhtml format to export dialog

This commit is contained in:
wmayer
2020-09-07 16:27:21 +02:00
parent 629b1403b2
commit 623d6b7134
2 changed files with 9 additions and 2 deletions

View File

@@ -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();

View File

@@ -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")