From a638af886e40ea749088ad0978cd24e0e70d0e23 Mon Sep 17 00:00:00 2001 From: sanikoyes Date: Fri, 11 Mar 2016 10:01:56 +0800 Subject: Fix link error when disable_3d=yes --- scene/main/viewport.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 550bae6306..47a97d74e7 100644 --- a/scene/main/viewport.cpp +++ b/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::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) { -- cgit v1.2.3