mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-18 11:50:57 +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
This commit is contained in:
parent
a43458677a
commit
40974dd14b
11 changed files with 31 additions and 31 deletions
|
|
@ -332,7 +332,7 @@ void BasicClouds::_initTexture()
|
|||
{
|
||||
for ( U32 i = 0; i < TEX_COUNT; i++ )
|
||||
{
|
||||
if ( mLayerEnabled[i] && mTextureAsset[i].notNull())
|
||||
if ( mLayerEnabled[i])
|
||||
{
|
||||
// load the resource.
|
||||
getTexture(i);
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ U32 CloudLayer::packUpdate( NetConnection *conn, U32 mask, BitStream *stream )
|
|||
{
|
||||
U32 retMask = Parent::packUpdate( conn, mask, stream );
|
||||
|
||||
if (stream->writeFlag(mTextureAsset.notNull())) {
|
||||
if (stream->writeFlag(getTexture())) {
|
||||
NetStringHandle assetIdStr = mTextureAsset.getAssetId(); conn->packNetStringHandleU(stream, assetIdStr);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue