Explorar o código

Fix invalid use of material reference.

Kim Kulling %!s(int64=3) %!d(string=hai) anos
pai
achega
174b2fcf59
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      code/AssetLib/ASE/ASEParser.cpp

+ 3 - 2
code/AssetLib/ASE/ASEParser.cpp

@@ -648,10 +648,11 @@ void Parser::ParseLV2MaterialBlock(ASE::Material &mat) {
                 // get a reference to the material
                 if (iIndex < mat.avSubMaterials.size()) {
                     Material &sMat = mat.avSubMaterials[iIndex];
+
+                    // parse the material block
+                    ParseLV2MaterialBlock(sMat);
                 }
 
-                // parse the material block
-                ParseLV2MaterialBlock(sMat);
                 continue;
             }
         }