collada: fix warning: not inited variable.

pull/2966/head
Kim Kulling 2020-09-27 21:16:51 +02:00
parent 5038f21d06
commit 052cc2e070
1 changed files with 1 additions and 6 deletions

View File

@ -1584,7 +1584,7 @@ void ColladaParser::ReadIndexData(XmlNode &node, Mesh &pMesh) {
std::vector<size_t> vcount;
std::vector<InputChannel> perIndexData;
unsigned int numPrimitives;
unsigned int numPrimitives = 0;
XmlParser::getUIntAttribute(node, "count", numPrimitives);
// read primitive count from the attribute
//int attrCount = GetAttribute("count");
@ -1596,11 +1596,6 @@ void ColladaParser::ReadIndexData(XmlNode &node, Mesh &pMesh) {
if (XmlParser::hasAttribute(node, "material")) {
XmlParser::getStdStrAttribute(node, "material", subgroup.mMaterial);
}
// material subgroup
// int attrMaterial = TestAttribute("material");
//if (attrMaterial > -1)
// subgroup.mMaterial = mReader->getAttributeValue(attrMaterial);
// distinguish between polys and triangles
std::string elementName = node.name();