mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 14:00:39 +00:00
ID10T issue
we dont want both fileChanged and resourcechanged.... causes issues
This commit is contained in:
parent
fc30d178af
commit
db8c565416
2 changed files with 0 additions and 14 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue