diff options
author | Rindbee <idleman@yeah.net> | 2022-09-02 10:30:08 +0800 |
---|---|---|
committer | Rindbee <idleman@yeah.net> | 2022-09-02 10:48:20 +0800 |
commit | 621b9a1bfe9660717f792945595ebfb3cd3ca305 (patch) | |
tree | f123458d21cab9b408503825212c950069fdff19 /scene/main/canvas_item.cpp | |
parent | c6fd311da0d0052bb11237662ec528f9fab1b7dd (diff) |
Fix getting an error message when repeatedly entering and exiting the tree
Diffstat (limited to 'scene/main/canvas_item.cpp')
-rw-r--r-- | scene/main/canvas_item.cpp | 1 |
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; |