Fix getting an error message when repeatedly entering and exiting the tree
This commit is contained in:
parent
c6fd311da0
commit
621b9a1bfe
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue