1、帮助器状态保存场景。

2、修复纯色背景场景载入报错。
This commit is contained in:
liteng 2018-08-27 21:27:49 +08:00
parent e2abe350cc
commit 3e1c19b89d

View File

@ -36,8 +36,8 @@ SceneSerializer.prototype.fromJSON = function (json, parent) {
Object3DSerializer.prototype.fromJSON(json, obj);
if (json.background.metadata &&
json.background.metadata.generator === 'CubeTextureSerializer' ||
json.background.metadata.generator === 'TextureSerializer'
(json.background.metadata.generator === 'CubeTextureSerializer' ||
json.background.metadata.generator === 'TextureSerializer')
) { // 天空盒和背景图片
obj.background = new TexturesSerializer(this.app).fromJSON(json.background);
} else { // 纯色