From cc6ab1408fa0dc7b386f5b8e5883c3cedcae950b Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Fri, 17 Oct 2025 11:24:38 +0200 Subject: [PATCH] Update texture output format in AssxmlFileWriter (#6372) * Update texture output format in AssxmlFileWriter --- code/AssetLib/Assxml/AssxmlFileWriter.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/AssetLib/Assxml/AssxmlFileWriter.cpp b/code/AssetLib/Assxml/AssxmlFileWriter.cpp index 79b164729..88a0ee9f0 100644 --- a/code/AssetLib/Assxml/AssxmlFileWriter.cpp +++ b/code/AssetLib/Assxml/AssxmlFileWriter.cpp @@ -301,7 +301,11 @@ static void WriteDump(const char *pFile, const char *cmd, const aiScene *scene, bool compressed = (tex->mHeight == 0); // mesh header - ioprintf(io, "\t \n", + std::string texName = "unknown"; + if (tex->mFilename.length != 0u) { + texName = tex->mFilename.data; + } + ioprintf(io, "\t \n", texName.c_str(), (compressed ? -1 : tex->mWidth), (compressed ? -1 : tex->mHeight), (compressed ? "true" : "false"));