mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 08:15:44 +00:00
ensure zodiac texture is preloaded
This commit is contained in:
parent
967fa62ddd
commit
209abf3aa4
1 changed files with 16 additions and 0 deletions
|
|
@ -326,6 +326,22 @@ bool afxZodiacData::preload(bool server, String &errorStr)
|
||||||
if (vert_range.x == 0.0f && vert_range.y == 0.0f)
|
if (vert_range.x == 0.0f && vert_range.y == 0.0f)
|
||||||
vert_range.x = vert_range.y = radius_xy;
|
vert_range.x = vert_range.y = radius_xy;
|
||||||
|
|
||||||
|
if (mTextureAssetId != StringTable->EmptyString())
|
||||||
|
{
|
||||||
|
mTextureAsset = mTextureAssetId;
|
||||||
|
if (mTextureAsset.notNull())
|
||||||
|
{
|
||||||
|
if (getTexture() != StringTable->EmptyString() && mTextureName != StringTable->insert("texhandle"))
|
||||||
|
{
|
||||||
|
if (mTextureAsset.notNull())
|
||||||
|
{
|
||||||
|
mTextureAsset->getChangedSignal().notify(this, &afxZodiacData::onImageChanged);
|
||||||
|
}
|
||||||
|
|
||||||
|
mTexture.set(getTexture(), mTextureProfile, avar("%s() - mTextureObject (line %d)", __FUNCTION__, __LINE__));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue