소스 검색

Editor/App: Removed .getCamera()

Mr.doob 9 년 전
부모
커밋
4c46b5fd9b
1개의 변경된 파일2개의 추가작업 그리고 8개의 파일을 삭제
  1. 2 8
      editor/js/libs/app.js

+ 2 - 8
editor/js/libs/app.js

@@ -48,7 +48,7 @@ var APP = {
 				update: []
 			};
 
-			var scriptWrapParams = 'player,renderer,scene';
+			var scriptWrapParams = 'player,renderer,scene,camera';
 			var scriptWrapResultObj = {};
 			for ( var eventKey in events ) {
 				scriptWrapParams += ',' + eventKey;
@@ -75,7 +75,7 @@ var APP = {
 					var script = scripts[ i ];
 
 					var functions = ( new Function( scriptWrapParams,
-							script.source + '\nreturn ' + scriptWrapResult+ ';' ).bind( object ) )( this, renderer, scene );
+							script.source + '\nreturn ' + scriptWrapResult+ ';' ).bind( object ) )( this, renderer, scene, camera );
 
 					for ( var name in functions ) {
 
@@ -100,12 +100,6 @@ var APP = {
 
 		};
 
-		this.getCamera = function () {
-
-			return camera;
-
-		};
-
 		this.setCamera = function ( value ) {
 
 			camera = value;