提交 eeb2a26b 编写于 作者: M Mr.doob

Editor/SceneLoader/SceneExporter: Removed bgColor stuff.

上级 39648e3b
......@@ -307,7 +307,7 @@
if ( resetScene ) {
signals.sceneAdded.dispatch( result.scene, result.currentCamera, result.bgColor );
signals.sceneAdded.dispatch( result.scene, result.currentCamera );
} else {
......
......@@ -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();
......
......@@ -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,
' }',
......
......@@ -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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册