From 209abf3aa4d2ef8fa88ca64e286593b61c546367 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Thu, 23 Jan 2025 11:21:07 -0600 Subject: [PATCH] ensure zodiac texture is preloaded --- Engine/source/afx/ce/afxZodiac.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Engine/source/afx/ce/afxZodiac.cpp b/Engine/source/afx/ce/afxZodiac.cpp index 5d9f310ef..43717ba04 100644 --- a/Engine/source/afx/ce/afxZodiac.cpp +++ b/Engine/source/afx/ce/afxZodiac.cpp @@ -326,6 +326,22 @@ 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 (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; }