Просмотр исходного кода

Fix invalid use of material reference.

Kim Kulling 3 лет назад
Родитель
Сommit
174b2fcf59
1 измененных файлов с 3 добавлено и 2 удалено
  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;
             }
         }