Browse Source

Editor: Adding camera to scene/outline.
Will be handy for modifying the near/far later.

Mr.doob 13 years ago
parent
commit
caab788df7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      editor/js/ui/Viewport.js

+ 1 - 0
editor/js/ui/Viewport.js

@@ -44,6 +44,7 @@ var Viewport = function ( signals ) {
 	var camera = new THREE.PerspectiveCamera( 50, 1, 1, 5000 );
 	camera.position.set( 500, 250, 500 );
 	camera.lookAt( scene.position );
+	scene.add( camera );
 
 	var controls = new THREE.TrackballControls( camera, container.dom );
 	controls.rotateSpeed = 1.0;