summaryrefslogtreecommitdiff
path: root/scene/main
diff options
context:
space:
mode:
authorsanikoyes <sanikoyes@163.com>2016-03-11 10:01:56 +0800
committersanikoyes <sanikoyes@163.com>2016-03-11 10:01:56 +0800
commita638af886e40ea749088ad0978cd24e0e70d0e23 (patch)
tree0fac44631f5e1adf723684db4112f8a68bf14483 /scene/main
parent20308c0475acb4678c9b86c7a4f210c1ec7548dc (diff)
Fix link error when disable_3d=yes
Diffstat (limited to 'scene/main')
-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 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<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) {