summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {