Skip to content

Commit

Permalink
Merge pull request #4759 from Let0s/trailing_zero_fix_collada_exporter
Browse files Browse the repository at this point in the history
Fixed error with trailing zero symbol as placeholder character
  • Loading branch information
kimkulling committed Oct 23, 2022
2 parents f8f12c8 + ac87b9c commit c2967cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/AssetLib/Collada/ColladaExporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void ExportSceneCollada(const char *pFile, IOSystem *pIOSystem, const aiScene *p
// Encodes a string into a valid XML ID using the xsd:ID schema qualifications.
static const std::string XMLIDEncode(const std::string &name) {
const char XML_ID_CHARS[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_-.";
const unsigned int XML_ID_CHARS_COUNT = sizeof(XML_ID_CHARS) / sizeof(char);
const unsigned int XML_ID_CHARS_COUNT = sizeof(XML_ID_CHARS) / sizeof(char) - 1;

if (name.length() == 0) {
return name;
Expand Down

0 comments on commit c2967cf

Please sign in to comment.