mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Fix getting an error message when repeatedly entering and exiting the tree
This commit is contained in:
parent
c6fd311da0
commit
621b9a1bfe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user