Enhance thread safety of loaders and importers
This commit is contained in:
parent
7537a0521f
commit
45d0b38076
5 changed files with 7 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue