Merge pull request #65225 from Rindbee/fix-reparent-from-window-issue

This commit is contained in:
Rémi Verschelde 2022-09-02 08:45:29 +02:00
commit 57a163405a

View file

@ -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;