mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-05 16:24:39 +00:00
Fix getting an error message when repeatedly entering and exiting the tree
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user