Add error condition for Control EXIT_TREE notif
(cherry picked from commit 3d1249a520
)
This commit is contained in:
parent
2a3925136e
commit
0ce0af221a
@ -471,6 +471,8 @@ void Control::_notification(int p_notification) {
|
||||
_size_changed();
|
||||
} break;
|
||||
case NOTIFICATION_EXIT_TREE: {
|
||||
ERR_FAIL_COND(!get_viewport());
|
||||
|
||||
get_viewport()->_gui_remove_control(this);
|
||||
|
||||
} break;
|
||||
|
Loading…
Reference in New Issue
Block a user