瀏覽代碼

Fix link error when disable_3d=yes

sanikoyes 9 年之前
父節點
當前提交
a638af886e
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      scene/main/viewport.cpp

+ 2 - 1
scene/main/viewport.cpp

@@ -894,6 +894,7 @@ void Viewport::_camera_remove(Camera* p_camera) {
 	}
 }
 
+#ifndef _3D_DISABLED
 void Viewport::_camera_make_next_current(Camera* p_exclude) {
 
 	for(Set<Camera*>::Element *E=cameras.front();E;E=E->next()) {
@@ -909,7 +910,7 @@ void Viewport::_camera_make_next_current(Camera* p_exclude) {
 
 	}
 }
-
+#endif
 
 void Viewport::set_transparent_background(bool p_enable) {