diff options
author | Ilaria Cislaghi <ilaria.cislaghi@simedis.com> | 2019-03-06 09:17:00 +0100 |
---|---|---|
committer | Ilaria Cislaghi <ilaria.cislaghi@simedis.com> | 2019-03-06 09:30:15 +0100 |
commit | 65b11d75175375705b285cbae8d3e313f475b3c7 (patch) | |
tree | 6a6c93358c9fe68c766378597afe7f486d5d3848 /editor/editor_resource_preview.cpp | |
parent | 2940475c716eab517ca52957acc8714f195d32cb (diff) | |
download | redot-engine-65b11d75175375705b285cbae8d3e313f475b3c7.tar.gz |
Removed the resource preview thread from the server build
Diffstat (limited to 'editor/editor_resource_preview.cpp')
-rw-r--r-- | editor/editor_resource_preview.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_resource_preview.cpp b/editor/editor_resource_preview.cpp index 9345ea6b6f..173333dac9 100644 --- a/editor/editor_resource_preview.cpp +++ b/editor/editor_resource_preview.cpp @@ -188,6 +188,7 @@ void EditorResourcePreview::_generate_preview(Ref<ImageTexture> &r_texture, Ref< void EditorResourcePreview::_thread() { +#ifndef SERVER_ENABLED while (!exit) { preview_sem->wait(); @@ -313,7 +314,7 @@ void EditorResourcePreview::_thread() { preview_mutex->unlock(); } } - +#endif exited = true; } |