mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-22 16:13:45 +00:00
use of get<some name> methods that already return nulls/false when attempting to load
in contexts where we would want to try first (pt2)
This commit is contained in:
parent
40974dd14b
commit
8bd145d54f
7 changed files with 17 additions and 25 deletions
|
|
@ -974,8 +974,6 @@ void GroundCover::_initialize( U32 cellCount, U32 cellPlacementCount )
|
|||
GFXTexHandle tex;
|
||||
if (mat->getDiffuseMap(0))
|
||||
tex = mat->getDiffuseMap(0);
|
||||
else if (mat->getDiffuseMapAsset(0).notNull())
|
||||
tex = mat->getDiffuseMap(0);
|
||||
|
||||
if(tex.isValid())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -367,7 +367,7 @@ void LevelInfo::_onLMActivate(const char *lm, bool enable)
|
|||
|
||||
void LevelInfo::setLevelAccuTexture()
|
||||
{
|
||||
if (isClientObject() && mAccuTextureAsset.notNull())
|
||||
if (isClientObject() && getAccuTexture())
|
||||
{
|
||||
gLevelAccuMap = getAccuTexture();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue