summaryrefslogtreecommitdiffstats
path: root/scene/2d/tile_map.h
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-10-13 02:12:24 +0200
committerkobewi <kobewi4e@gmail.com>2022-11-07 00:32:41 +0100
commitf8f25adc0b8414d1de819d282087b3749469b88c (patch)
tree4945e53d586a6f146d2430717a9edae5a181b9fe /scene/2d/tile_map.h
parentf814e15c7f60a685e8b3623fc93231c18ccd3627 (diff)
downloadredot-engine-f8f25adc0b8414d1de819d282087b3749469b88c.tar.gz
Don't free instanced scenes when recreating tiles
Diffstat (limited to 'scene/2d/tile_map.h')
-rw-r--r--scene/2d/tile_map.h2
1 files changed, 2 insertions, 0 deletions
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<Vector3i> instantiated_scenes;
+
// Rect caching.
void _recompute_rect_cache();