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"));