Fix version revision formatting in glTF metadata

pull/2941/head
Loïc 2020-01-22 12:40:57 +01:00
parent a8698f7e76
commit 2ebafe0693
2 changed files with 2 additions and 2 deletions

View File

@ -869,7 +869,7 @@ void glTFExporter::ExportMetadata()
asset.version = "1.0";
char buffer[256];
ai_snprintf(buffer, 256, "Open Asset Import Library (assimp v%d.%d.%d)",
ai_snprintf(buffer, 256, "Open Asset Import Library (assimp v%d.%d.%x)",
aiGetVersionMajor(), aiGetVersionMinor(), aiGetVersionRevision());
asset.generator = buffer;

View File

@ -991,7 +991,7 @@ void glTF2Exporter::ExportMetadata()
asset.version = "2.0";
char buffer[256];
ai_snprintf(buffer, 256, "Open Asset Import Library (assimp v%d.%d.%d)",
ai_snprintf(buffer, 256, "Open Asset Import Library (assimp v%d.%d.%x)",
aiGetVersionMajor(), aiGetVersionMinor(), aiGetVersionRevision());
asset.generator = buffer;