Browse Source

yell when warningmaterial is undefined

AzaezelX 4 năm trước cách đây
mục cha
commit
e7403197c7
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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;
 }