Remove Unlink from asset reference

This commit is contained in:
Wojtek Figat
2021-02-10 11:37:14 +01:00
parent adbb467206
commit 81e41d51c8
35 changed files with 80 additions and 124 deletions

View File

@@ -78,14 +78,6 @@ public:
return _asset ? _asset->GetOrCreateManagedInstance() : nullptr;
}
/// <summary>
/// Clears the asset reference.
/// </summary>
FORCE_INLINE void Unlink()
{
OnSet(nullptr);
}
/// <summary>
/// Gets the asset property value as string.
/// </summary>
@@ -135,7 +127,7 @@ protected:
if (_asset == asset)
{
Unload();
Unlink();
OnSet(nullptr);
}
}
};

View File

@@ -38,7 +38,7 @@ Asset::LoadResult SkeletonMask::load()
void SkeletonMask::unload(bool isReloading)
{
Skeleton.Unlink();
Skeleton = nullptr;
_maskedNodes.Resize(0);
_mask.Resize(0);
}