Co-authored-by: Kim Kulling <[email protected]>
@@ -2293,9 +2293,9 @@ void ColladaParser::ReadNodeGeometry(XmlNode &node, Node *pNode) {
urlMat++;
s.mMatName = urlMat;
+ ReadMaterialVertexInputBinding(instanceMatNode, s);
// store the association
instance.mMaterials[group] = s;
- ReadMaterialVertexInputBinding(instanceMatNode, s);
}