Merge pull request #77234 from RandomShaper/fix_rtl_mt

Allow threads to mark themselves as safe for nodes
This commit is contained in:
Rémi Verschelde
2023-05-24 08:42:59 +02:00
7 changed files with 62 additions and 4 deletions
+2
View File
@@ -2712,9 +2712,11 @@ bool RichTextLabel::_find_layout_subitem(Item *from, Item *to) {
}
void RichTextLabel::_thread_function(void *p_userdata) {
set_current_thread_safe_for_nodes(true);
_process_line_caches();
updating.store(false);
call_deferred(SNAME("thread_end"));
set_current_thread_safe_for_nodes(false);
}
void RichTextLabel::_thread_end() {