summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-02 08:45:29 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-02 08:45:29 +0200
commit57a163405a29c962f289a506f20ab09717ad3e17 (patch)
treeeb780e1c4f491844a67e5dff0f4195b27507276a /scene
parent5a136ee49064da747d7eed541adc2ff6774d2eb3 (diff)
parent621b9a1bfe9660717f792945595ebfb3cd3ca305 (diff)
Merge pull request #65225 from Rindbee/fix-reparent-from-window-issue
Diffstat (limited to 'scene')
-rw-r--r--scene/main/canvas_item.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/canvas_item.cpp b/scene/main/canvas_item.cpp
index 61a7600664..65e7ba3e67 100644
--- a/scene/main/canvas_item.cpp
+++ b/scene/main/canvas_item.cpp
@@ -338,6 +338,7 @@ void CanvasItem::_notification(int p_what) {
}
if (window) {
window->disconnect(SceneStringNames::get_singleton()->visibility_changed, callable_mp(this, &CanvasItem::_window_visibility_changed));
+ window = nullptr;
}
global_invalid = true;
parent_visible_in_tree = false;