开发:修复类型错误

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

Loading…
Cancel
Save