Gui: [skip ci] add x3d and xhtml format to export dialog
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user