aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsanikoyes2016-03-11 10:01:56 +0800
committerRémi Verschelde2016-04-02 22:05:49 +0200
commit7c44cbee67974db90c22488a81af7567c4e47f6a (patch)
treece67fccaba45991425ce6a8d4a0ebbf60da662b5
parentd950a13c100b895809c833840f44f000cfe3adcb (diff)
downloadgodot-7c44cbee67974db90c22488a81af7567c4e47f6a.tar.gz
godot-7c44cbee67974db90c22488a81af7567c4e47f6a.tar.zst
godot-7c44cbee67974db90c22488a81af7567c4e47f6a.zip
Fix link error when disable_3d=yes
(cherry picked from commit a638af886e40ea749088ad0978cd24e0e70d0e23)
-rw-r--r--scene/main/viewport.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp
index 2c94d2e09..5017ae61f 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<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) {