mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
1、帮助器状态保存场景。
2、修复纯色背景场景载入报错。
This commit is contained in:
parent
e2abe350cc
commit
3e1c19b89d
@ -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 { // 纯色
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user