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

@@ -79,7 +79,7 @@ void Lightmap::EnsureSize(int32 size)
{
// Unlink texture that cannot be loaded
LOG(Warning, "Lightmap::EnsureSize failed to load texture");
texture.Unlink();
texture = nullptr;
}
else
{
@@ -88,7 +88,7 @@ void Lightmap::EnsureSize(int32 size)
{
// Unlink texture and import new with valid size
LOG(Info, "Changing lightmap {0}:{1} size from {2} to {3}", _index, textureIndex, texture->GetTexture()->Size(), size);
texture.Unlink();
texture = nullptr;
}
}
}