diff options
Diffstat (limited to 'scene/main/viewport.cpp')
-rw-r--r-- | scene/main/viewport.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 91769bbb82..defa7da6ae 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -276,7 +276,7 @@ void Viewport::_notification(int p_what) { } break; case NOTIFICATION_READY: { - +#ifndef _3D_DISABLED if (cameras.size() && !camera) { //there are cameras but no current camera, pick first in tree and make it current Camera *first=NULL; @@ -290,6 +290,7 @@ void Viewport::_notification(int p_what) { if (first) first->make_current(); } +#endif } break; case NOTIFICATION_EXIT_SCENE: { |