Removed the resource preview thread from the server build

This commit is contained in:
Ilaria Cislaghi 2019-03-06 09:17:00 +01:00
parent 2940475c71
commit 65b11d7517
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}