Clear texture cache on map clear

This commit is contained in:
Jarrod Doyle 2024-08-07 17:30:20 +01:00
parent 0758e24be5
commit 9d49b38bf2
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ public partial class Mission : Node3D
public void ClearMap()
{
_textures.Clear();
foreach (var node in GetChildren())
{
node.QueueFree();