Browse Source

Editor/SceneLoader/SceneExporter: Removed bgColor stuff.

Mr.doob 12 years ago
parent
commit
eeb2a26bf6

+ 1 - 1
editor/index.html

@@ -307,7 +307,7 @@
 
 									if ( resetScene ) {
 
-										signals.sceneAdded.dispatch( result.scene, result.currentCamera, result.bgColor );
+										signals.sceneAdded.dispatch( result.scene, result.currentCamera );
 
 									} else {
 

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

@@ -722,7 +722,7 @@ var Viewport = function ( signals ) {
 
 	} );
 
-	signals.sceneAdded.add( function ( newScene, newCamera, newClearColor ) {
+	signals.sceneAdded.add( function ( newScene, newCamera ) {
 
 		scene = newScene;
 
@@ -773,12 +773,6 @@ var Viewport = function ( signals ) {
 
 		}
 
-		if ( newClearColor ) {
-
-			signals.clearColorChanged.dispatch( newClearColor.getHex() );
-
-		}
-
 		if ( newScene.fog ) {
 
 			oldFogColor = newScene.fog.color.getHex();

+ 0 - 4
examples/js/exporters/SceneExporter.js

@@ -151,8 +151,6 @@ THREE.SceneExporter.prototype = {
 
 		} );
 
-		var bgcolor = ColorString( clearColor );
-		var bgalpha = clearAlpha;
 		var defcamera = LabelString( activeCamera ? getObjectName( activeCamera ) : "" );
 		var deffog = LabelString( scene.fog ? getFogName( scene.fog ) : "" );
 
@@ -743,8 +741,6 @@ THREE.SceneExporter.prototype = {
 			'',
 			'	"defaults" :',
 			'	{',
-			'		"bgcolor" : ' + bgcolor + ',',
-			'		"bgalpha" : ' + bgalpha + ',',
 			'		"camera"  : ' + defcamera + ',',
 			'		"fog"  	  : ' + deffog,
 			'	}',

+ 0 - 6
src/loaders/SceneLoader.js

@@ -1152,12 +1152,6 @@ THREE.SceneLoader.prototype.parse = function ( json, callbackFinished, url ) {
 
 	}
 
-	color = data.defaults.bgcolor;
-	result.bgColor = new THREE.Color();
-	result.bgColor.setRGB( color[0], color[1], color[2] );
-
-	result.bgColorAlpha = data.defaults.bgalpha;
-
 	// synchronous callback
 
 	scope.callbackSync( result );