Browse Source

Editor/App: Removed .getCamera()

Mr.doob 9 years ago
parent
commit
4c46b5fd9b
1 changed files with 2 additions and 8 deletions
  1. 2 8
      editor/js/libs/app.js

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

@@ -48,7 +48,7 @@ var APP = {
 				update: []
 				update: []
 			};
 			};
 
 
-			var scriptWrapParams = 'player,renderer,scene';
+			var scriptWrapParams = 'player,renderer,scene,camera';
 			var scriptWrapResultObj = {};
 			var scriptWrapResultObj = {};
 			for ( var eventKey in events ) {
 			for ( var eventKey in events ) {
 				scriptWrapParams += ',' + eventKey;
 				scriptWrapParams += ',' + eventKey;
@@ -75,7 +75,7 @@ var APP = {
 					var script = scripts[ i ];
 					var script = scripts[ i ];
 
 
 					var functions = ( new Function( scriptWrapParams,
 					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 ) {
 					for ( var name in functions ) {
 
 
@@ -100,12 +100,6 @@ var APP = {
 
 
 		};
 		};
 
 
-		this.getCamera = function () {
-
-			return camera;
-
-		};
-
 		this.setCamera = function ( value ) {
 		this.setCamera = function ( value ) {
 
 
 			camera = value;
 			camera = value;