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

Allow threads to mark themselves as safe for nodes

This commit is contained in:
Pedro J. Estébanez
2023-05-23 23:28:47 +02:00
parent 809a982162
commit e725b4b02b
7 changed files with 62 additions and 4 deletions

View File

@@ -59,6 +59,7 @@ void TilesEditorPlugin::_pattern_preview_done() {
void TilesEditorPlugin::_thread_func(void *ud) {
TilesEditorPlugin *te = static_cast<TilesEditorPlugin *>(ud);
set_current_thread_safe_for_nodes(true);
te->_thread();
}