1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Enhance thread safety of loaders and importers

This commit is contained in:
Pedro J. Estébanez
2023-01-19 13:45:04 +01:00
parent 7537a0521f
commit 45d0b38076
5 changed files with 7 additions and 10 deletions

View File

@@ -4115,6 +4115,7 @@ void EditorNode::notify_all_debug_sessions_exited() {
}
void EditorNode::add_io_error(const String &p_error) {
DEV_ASSERT(Thread::get_caller_id() == Thread::get_main_id());
singleton->load_errors->add_image(singleton->gui_base->get_theme_icon(SNAME("Error"), SNAME("EditorIcons")));
singleton->load_errors->add_text(p_error + "\n");
singleton->load_error_dialog->attach_and_popup_centered_ratio(0.5);