Browse Source

Add dot only when the extension is not empty.

Kim Kulling 3 năm trước cách đây
mục cha
commit
4aaa807704
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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
-    out += "." + outext;
+    if (!outext.empty()) {
+        out += "." + outext;
+    }
 
     // and call the export routine
     if (!ExportModel(scene, import, out, e->id)) {