Browse Source

Fix collada uv channels - temporary was stored and then updated. So all information on uv channels was ignored. (#5630)

Co-authored-by: Kim Kulling <[email protected]>
Stepan Hrbek 1 year ago
parent
commit
adff2f388a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/AssetLib/Collada/ColladaParser.cpp

+ 1 - 1
code/AssetLib/Collada/ColladaParser.cpp

@@ -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);
                     }
                 }
             }