From 4aaa807704811ce1b7dca4e1e28842f2ec519bfe Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sat, 6 Aug 2022 18:37:12 +0200 Subject: [PATCH] Add dot only when the extension is not empty. --- tools/assimp_cmd/Export.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/assimp_cmd/Export.cpp b/tools/assimp_cmd/Export.cpp index fd9fc7652..b78db157b 100644 --- a/tools/assimp_cmd/Export.cpp +++ b/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)) {