From 39648e3b3509faa23169e0b7a067cd76739aa18d Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Tue, 15 Jan 2013 18:41:36 +0100 Subject: [PATCH] Editor: Support scenes without cameras. --- editor/js/ui/Viewport.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/editor/js/ui/Viewport.js b/editor/js/ui/Viewport.js index 1fb5caaeff..ca930d41f8 100644 --- a/editor/js/ui/Viewport.js +++ b/editor/js/ui/Viewport.js @@ -767,6 +767,10 @@ var Viewport = function ( signals ) { controls.object = camera; controls.update(); + } else { + + scene.add( camera ); + } if ( newClearColor ) { @@ -806,7 +810,7 @@ var Viewport = function ( signals ) { } signals.sceneChanged.dispatch( scene ); - signals.objectSelected.dispatch( null ); + signals.objectSelected.dispatch( camera ); } ); -- GitLab