mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix crash when ProgressDialog is outside tree
This commit is contained in:
parent
9ee1873ae1
commit
15d0e56961
1 changed files with 2 additions and 1 deletions
|
@ -166,7 +166,8 @@ void ProgressDialog::_popup() {
|
||||||
|
|
||||||
center_panel->set_custom_minimum_size(ms);
|
center_panel->set_custom_minimum_size(ms);
|
||||||
|
|
||||||
Window *current_window = get_last_exclusive_window();
|
Window *current_window = SceneTree::get_singleton()->get_root()->get_last_exclusive_window();
|
||||||
|
ERR_FAIL_NULL(current_window);
|
||||||
reparent(current_window);
|
reparent(current_window);
|
||||||
|
|
||||||
// Ensures that events are properly released before the dialog blocks input.
|
// Ensures that events are properly released before the dialog blocks input.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue