开发:修复类型错误

pull/2410/MERGE
ChenX 7 months ago
parent c402e52e88
commit 763bb773de

@ -370,7 +370,7 @@ export default class ResourceStore
}, module_detail.type === ResType.Mtl ? CommandNames.ApplyMtl : "绘制模型");
};
PraseMaterial = async (mtlPath: string) =>
PraseMaterial = async (mtlPath: string): Promise<PhysicalMaterialRecord | undefined> =>
{
let name = ParseUrlName(mtlPath);
let mtl = app.Database.MaterialTable.GetAt(name);
@ -385,7 +385,7 @@ export default class ResourceStore
timeout: 2000,
intent: Intent.DANGER,
});
return "";
return;
}
let dataString = await res.text();

Loading…
Cancel
Save