Merge pull request #557 from alemuntoni/master

Fix U3D export for Mac and Linux
This commit is contained in:
Alessandro Muntoni 2020-01-20 17:09:59 +01:00 committed by GitHub
commit 8f10e88eed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 6 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -106,11 +106,13 @@ bool U3DIOPlugin::save(const QString &formatName, const QString &fileName, MeshM
converterPath += "/IDTFConverter.exe";
converterCommandLine = converterPath;
#elif defined(Q_OS_MAC)
converterPath.replace(QString(" "),QString("\\ "));
converterCommandLine = "\""+converterPath +"/IDTFConverter.sh"+ "\" \"" + converterPath+"\"";
converterPath = converterPath +"/IDTFConverter.sh";
//converterPath.replace(QString(" "),QString("\\ "));
//converterCommandLine = "\""+converterPath +"/IDTFConverter.sh"+ "\" \"" + converterPath+"\"";
//converterPath = converterPath +"/IDTFConverter.sh";
converterPath += "/bin/IDTFConverter";
converterCommandLine = converterPath;
#elif defined(Q_OS_LINUX)
converterPath = "/usr/bin/IDTFConverter";
converterPath += "/bin/IDTFConverter";
converterCommandLine = converterPath;
#endif
if (settings.contains("U3D/converter"))