You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Fixed crash in ScrollContainer _notification
This commit is contained in:
@@ -320,7 +320,9 @@ void ScrollContainer::_notification(int p_what) {
|
||||
};
|
||||
|
||||
if (p_what == NOTIFICATION_READY) {
|
||||
get_viewport()->connect("gui_focus_changed", callable_mp(this, &ScrollContainer::_gui_focus_changed));
|
||||
Viewport* viewport = get_viewport();
|
||||
ERR_FAIL_COND(!viewport);
|
||||
viewport->connect("gui_focus_changed", callable_mp(this, &ScrollContainer::_gui_focus_changed));
|
||||
_update_dimensions();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user