Remove Unlink from asset reference
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -38,7 +38,7 @@ Asset::LoadResult SkeletonMask::load()
|
||||
|
||||
void SkeletonMask::unload(bool isReloading)
|
||||
{
|
||||
Skeleton.Unlink();
|
||||
Skeleton = nullptr;
|
||||
_maskedNodes.Resize(0);
|
||||
_mask.Resize(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user