Răsfoiți Sursa

Merge pull request #4674 from assimp/kimkulling/do_not_add_dot_when_extension_is_empty_issue-4670

Kimkulling/do not add dot when extension is empty issue 4670
Kim Kulling 3 ani în urmă
părinte
comite
17c6491c91
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      tools/assimp_cmd/Export.cpp

+ 3 - 1
tools/assimp_cmd/Export.cpp

@@ -153,7 +153,9 @@ int Assimp_Export(const char *const *params, unsigned int num) {
     }
     }
 
 
     // derive the final file name
     // derive the final file name
-    out += "." + outext;
+    if (!outext.empty()) {
+        out += "." + outext;
+    }
 
 
     // and call the export routine
     // and call the export routine
     if (!ExportModel(scene, import, out, e->id)) {
     if (!ExportModel(scene, import, out, e->id)) {