From f8f25adc0b8414d1de819d282087b3749469b88c Mon Sep 17 00:00:00 2001 From: kobewi Date: Thu, 13 Oct 2022 02:12:24 +0200 Subject: Don't free instanced scenes when recreating tiles --- scene/2d/tile_map.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scene/2d/tile_map.h') diff --git a/scene/2d/tile_map.h b/scene/2d/tile_map.h index 7f3e241871..a6048b3a96 100644 --- a/scene/2d/tile_map.h +++ b/scene/2d/tile_map.h @@ -236,6 +236,8 @@ private: void _clear_layer_internals(int p_layer); void _clear_internals(); + HashSet instantiated_scenes; + // Rect caching. void _recompute_rect_cache(); -- cgit v1.2.3