mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Removed the resource preview thread from the server build
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user