소스 검색

Removed the resource preview thread from the server build

Ilaria Cislaghi 6 년 전
부모
커밋
65b11d7517
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      editor/editor_resource_preview.cpp

+ 2 - 1
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;
 }