소스 검색

Move missplaced variable declaration

Tristan VALCKE 7 년 전
부모
커밋
b5dcd1fb29
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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;
 
 	switch ( scope ) {
-			
-		var camera = this.camera
 
 		case THREE.CameraNode.DEPTH:
 
+			var camera = this.camera
 			this.near = new THREE.FloatNode( camera ? camera.near : 1 );
 			this.far = new THREE.FloatNode( camera ? camera.far : 1200 );