Parcourir la source

Move missplaced variable declaration

Tristan VALCKE il y a 7 ans
Parent
commit
b5dcd1fb29
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      examples/js/nodes/accessors/CameraNode.js

+ 1 - 2
examples/js/nodes/accessors/CameraNode.js

@@ -52,11 +52,10 @@ THREE.CameraNode.prototype.setScope = function( scope ) {
 	this.scope = scope;
 	this.scope = scope;
 
 
 	switch ( scope ) {
 	switch ( scope ) {
-			
-		var camera = this.camera
 
 
 		case THREE.CameraNode.DEPTH:
 		case THREE.CameraNode.DEPTH:
 
 
+			var camera = this.camera
 			this.near = new THREE.FloatNode( camera ? camera.near : 1 );
 			this.near = new THREE.FloatNode( camera ? camera.near : 1 );
 			this.far = new THREE.FloatNode( camera ? camera.far : 1200 );
 			this.far = new THREE.FloatNode( camera ? camera.far : 1200 );