summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2023-05-23 23:28:47 +0200
committerPedro J. Estébanez <pedrojrulez@gmail.com>2023-05-24 00:22:58 +0200
commite725b4b02b60c9e8590cf7bff068f65074947fe9 (patch)
tree7e3cd51cb4a83faf95c4e3459abe9a86995e8f23 /editor
parent809a98216267f3066b9fec2f02b2042bdc9d3e0d (diff)
downloadredot-engine-e725b4b02b60c9e8590cf7bff068f65074947fe9.tar.gz
Allow threads to mark themselves as safe for nodes
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/tiles/tiles_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/tiles/tiles_editor_plugin.cpp b/editor/plugins/tiles/tiles_editor_plugin.cpp
index 719de9dc81..0e9ff18355 100644
--- a/editor/plugins/tiles/tiles_editor_plugin.cpp
+++ b/editor/plugins/tiles/tiles_editor_plugin.cpp
@@ -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();
}