Explorar el Código

yell when warningmaterial is undefined

AzaezelX hace 4 años
padre
commit
e7403197c7
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      Engine/source/materials/materialManager.cpp

+ 2 - 0
Engine/source/materials/materialManager.cpp

@@ -227,6 +227,8 @@ BaseMatInstance  * MaterialManager::createWarningMatInstance()
       warnMatInstance->init(  getDefaultFeatures(), 
                               getGFXVertexFormat<GFXVertexPNTTB>() );
    }
+   else
+      Con::errorf("WarningMaterial Not Found!");
 
    return warnMatInstance;
 }