Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3086,11 +3086,19 @@ static string GetUniqueNodeName(RootBase gltf, uint index, ICollection<string> e
return name;
}

/// <summary>
/// Called at the beginning of <see cref="DisposeVolatileData"/> before buffers are freed.
/// Override to process data while it is still accessible.
/// </summary>
protected virtual void OnBeforeDisposeVolatileData() { }

/// <summary>
/// Free up volatile loading resources
/// </summary>
async Task DisposeVolatileData()
{
OnBeforeDisposeVolatileData();

m_Buffers = null;
m_BinChunks = null;

Expand Down