Merge pull request #65225 from Rindbee/fix-reparent-from-window-issue
This commit is contained in:
commit
57a163405a
1 changed files with 1 additions and 0 deletions
|
@ -338,6 +338,7 @@ void CanvasItem::_notification(int p_what) {
|
||||||
}
|
}
|
||||||
if (window) {
|
if (window) {
|
||||||
window->disconnect(SceneStringNames::get_singleton()->visibility_changed, callable_mp(this, &CanvasItem::_window_visibility_changed));
|
window->disconnect(SceneStringNames::get_singleton()->visibility_changed, callable_mp(this, &CanvasItem::_window_visibility_changed));
|
||||||
|
window = nullptr;
|
||||||
}
|
}
|
||||||
global_invalid = true;
|
global_invalid = true;
|
||||||
parent_visible_in_tree = false;
|
parent_visible_in_tree = false;
|
||||||
|
|
Loading…
Reference in a new issue