浏览代码

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() {
 void EditorResourcePreview::_thread() {
 
 
+#ifndef SERVER_ENABLED
 	while (!exit) {
 	while (!exit) {
 
 
 		preview_sem->wait();
 		preview_sem->wait();
@@ -313,7 +314,7 @@ void EditorResourcePreview::_thread() {
 			preview_mutex->unlock();
 			preview_mutex->unlock();
 		}
 		}
 	}
 	}
-
+#endif
 	exited = true;
 	exited = true;
 }
 }