Fix error when loading surface from not yet loaded asset
This commit is contained in:
@@ -54,6 +54,8 @@ AssetChunksFlag AnimationGraphFunction::getChunksToPreload() const
|
||||
BytesContainer AnimationGraphFunction::LoadSurface() const
|
||||
{
|
||||
BytesContainer result;
|
||||
if (WaitForLoaded())
|
||||
return result;
|
||||
ScopeLock lock(Locker);
|
||||
result.Link(GraphData);
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user