diff --git a/code/PostProcessing/RemoveRedundantMaterials.cpp b/code/PostProcessing/RemoveRedundantMaterials.cpp index b5fa7e732..d962e95b6 100644 --- a/code/PostProcessing/RemoveRedundantMaterials.cpp +++ b/code/PostProcessing/RemoveRedundantMaterials.cpp @@ -157,6 +157,7 @@ void RemoveRedundantMatsProcess::Execute( aiScene* pScene) { // If the new material count differs from the original, // we need to rebuild the material list and remap mesh material indexes. if (iNewNum < 1) { + pScene->mNumMaterials = 0; //throw DeadlyImportError("No materials remaining"); return; }