1
0
Fork 0

Merge pull request #90637 from aaronp64/force_native_crash

Fix `Window.hide()` crash when `force_native` changes
This commit is contained in:
Rémi Verschelde 2024-04-15 10:00:29 +02:00
commit 88033ea8c6
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 2 deletions

View File

@ -1215,10 +1215,10 @@ void Window::set_force_native(bool p_force_native) {
if (force_native == p_force_native) {
return;
}
force_native = p_force_native;
if (is_visible() && !is_in_edited_scene_root()) {
WARN_PRINT("Can't change \"force_native\" while a window is displayed. Consider hiding window before changing this value.");
ERR_FAIL_MSG("Can't change \"force_native\" while a window is displayed. Consider hiding window before changing this value.");
}
force_native = p_force_native;
}
bool Window::get_force_native() const {