mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-26 10:03:48 +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
|
|
@ -324,10 +324,7 @@ bool afxZodiacData::preload(bool server, String &errorStr)
|
|||
if (vert_range.x == 0.0f && vert_range.y == 0.0f)
|
||||
vert_range.x = vert_range.y = radius_xy;
|
||||
|
||||
if (mTextureAsset.notNull())
|
||||
{
|
||||
getTexture();
|
||||
}
|
||||
getTexture();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
@ -345,10 +342,7 @@ void afxZodiacData::onStaticModified(const char* slot, const char* newValue)
|
|||
|
||||
void afxZodiacData::onPerformSubstitutions()
|
||||
{
|
||||
if (mTextureAsset.notNull())
|
||||
{
|
||||
getTexture();
|
||||
}
|
||||
getTexture();
|
||||
}
|
||||
|
||||
F32 afxZodiacData::calcRotationAngle(F32 elapsed, F32 rate_factor)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue