diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 2c94d2e093c..5017ae61ff6 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) {