mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
修复反序列化bug。
This commit is contained in:
parent
0a55c15d69
commit
d2996ff480
@ -334,7 +334,8 @@ Converter.prototype.sceneFromJson = function (jsons, options) {
|
||||
console.warn(`Converter: 不存在${objJson.metadata.type}的反序列化器。`);
|
||||
}
|
||||
|
||||
if (objJson.children && Array.isArray(objJson.children) && objJson.children.length > 0 && obj) {
|
||||
// objJson.userData.type不为空,说明它是内置类型,其子项不应该被反序列化
|
||||
if (objJson.userData.type === undefined && objJson.children && Array.isArray(objJson.children) && objJson.children.length > 0 && obj) {
|
||||
parseJson(objJson, obj, list);
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user