mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
yell when warningmaterial is undefined
This commit is contained in:
parent
58b539653e
commit
e7403197c7
1 changed files with 2 additions and 0 deletions
|
|
@ -227,6 +227,8 @@ BaseMatInstance * MaterialManager::createWarningMatInstance()
|
||||||
warnMatInstance->init( getDefaultFeatures(),
|
warnMatInstance->init( getDefaultFeatures(),
|
||||||
getGFXVertexFormat<GFXVertexPNTTB>() );
|
getGFXVertexFormat<GFXVertexPNTTB>() );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
Con::errorf("WarningMaterial Not Found!");
|
||||||
|
|
||||||
return warnMatInstance;
|
return warnMatInstance;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue