|
|
@ -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();
|
|
|
|