Merge pull request #26687 from QbieShay/hang_server_build_fix

Removed the resource preview thread from the server build
This commit is contained in:
Rémi Verschelde 2019-03-09 22:59:24 +01:00 committed by GitHub
commit 03664e26c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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