You've already forked godot
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user