Fix collada parser fails on Mixamo exports
parent
8a90ba8a39
commit
e63426b89c
|
@ -1616,12 +1616,17 @@ void ColladaParser::ReadIndexData(XmlNode &node, Mesh &pMesh) {
|
||||||
XmlParser::getValueAsString(currentNode, v);
|
XmlParser::getValueAsString(currentNode, v);
|
||||||
const char *content = v.c_str();
|
const char *content = v.c_str();
|
||||||
vcount.reserve(numPrimitives);
|
vcount.reserve(numPrimitives);
|
||||||
|
SkipSpacesAndLineEnd(&content);
|
||||||
for (unsigned int a = 0; a < numPrimitives; a++) {
|
for (unsigned int a = 0; a < numPrimitives; a++) {
|
||||||
if (*content == 0) {
|
if (*content == 0) {
|
||||||
throw DeadlyImportError("Expected more values while reading <vcount> contents.");
|
throw DeadlyImportError("Expected more values while reading <vcount> contents.");
|
||||||
}
|
}
|
||||||
// read a number
|
// read a number
|
||||||
vcount.push_back((size_t)strtoul10(content, &content));
|
size_t valueRead = (size_t)strtoul10(content, &content);
|
||||||
|
if(valueRead == 0) {
|
||||||
|
printf("wohoo");
|
||||||
|
}
|
||||||
|
vcount.push_back(valueRead);
|
||||||
// skip whitespace after it
|
// skip whitespace after it
|
||||||
SkipSpacesAndLineEnd(&content);
|
SkipSpacesAndLineEnd(&content);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue