summaryrefslogtreecommitdiffstats
path: root/scene/main/canvas_item.cpp
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2024-01-17 18:53:12 +0100
committerYuri Sizov <yuris@humnom.net>2024-01-17 18:53:12 +0100
commit788aab3a965783dc5ce87474d4b79312f492962d (patch)
tree12b4a8039fda094c661613fc0f2ec9c8d61c9398 /scene/main/canvas_item.cpp
parent649bcbdac96e0d88d30f5acb4eef9e1bd98ddff0 (diff)
parent48bed5050b4a2d695953ace409c577bdfefe0038 (diff)
downloadredot-engine-788aab3a965783dc5ce87474d4b79312f492962d.tar.gz
Merge pull request #87115 from groud/tilemap_layers_as_nodes
Make TileMapLayers extend Node2D and work as children of TileMap
Diffstat (limited to 'scene/main/canvas_item.cpp')
-rw-r--r--scene/main/canvas_item.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/main/canvas_item.cpp b/scene/main/canvas_item.cpp
index 093b52b650..7fff2f90fb 100644
--- a/scene/main/canvas_item.cpp
+++ b/scene/main/canvas_item.cpp
@@ -277,6 +277,8 @@ void CanvasItem::_notification(int p_what) {
ERR_MAIN_THREAD_GUARD;
ERR_FAIL_COND(!is_inside_tree());
+ _set_global_invalid(true);
+
Node *parent = get_parent();
if (parent) {
CanvasItem *ci = Object::cast_to<CanvasItem>(parent);