Clear texture cache on map clear
This commit is contained in:
parent
0758e24be5
commit
9d49b38bf2
|
@ -65,6 +65,8 @@ public partial class Mission : Node3D
|
||||||
|
|
||||||
public void ClearMap()
|
public void ClearMap()
|
||||||
{
|
{
|
||||||
|
_textures.Clear();
|
||||||
|
|
||||||
foreach (var node in GetChildren())
|
foreach (var node in GetChildren())
|
||||||
{
|
{
|
||||||
node.QueueFree();
|
node.QueueFree();
|
||||||
|
|
Loading…
Reference in New Issue