ID10T issue

we dont want both fileChanged and resourcechanged.... causes issues
This commit is contained in:
marauder2k7 2025-03-27 19:34:11 +00:00
parent fc30d178af
commit db8c565416
2 changed files with 0 additions and 14 deletions

View file

@ -363,10 +363,6 @@ void ImageAsset::setImageFile(StringTableEntry pImageFile)
if (pImageFile == mImageFile)
return;
// if we previously loaded, remove the listener for the file.
if (mLoadedState == Ok)
Torque::FS::RemoveChangeNotification(mImageFile, this, &ImageAsset::_onFileChanged);
if (String(pImageFile).startsWith("#") || String(pImageFile).startsWith("$"))
{
mImageFile = StringTable->insert(pImageFile);
@ -420,7 +416,6 @@ U32 ImageAsset::load()
}
else
{
Torque::FS::AddChangeNotification(mImageFile, this, &ImageAsset::_onFileChanged);
mLoadedState = Ok;
}
@ -551,14 +546,6 @@ ImageAsset::ImageTypes ImageAsset::getImageTypeFromName(StringTableEntry name)
return (ImageTypes)ret;
}
void ImageAsset::_onFileChanged(const Torque::Path& path)
{
if (path != Torque::Path(mImageFile))
return;
refreshAsset();
}
void ImageAsset::_onResourceChanged(const Torque::Path& path)
{
if (path != Torque::Path(mImageFile))

View file

@ -206,7 +206,6 @@ protected:
// Asset Base callback
void initializeAsset(void) override;
void onAssetRefresh(void) override;
void _onFileChanged(const Torque::Path& path);
/// Taml callbacks.
void onTamlPreWrite(void) override;