fix: add support for usd for assimp, #144

This commit is contained in:
C4illin 2024-09-28 13:13:48 +02:00
parent d3af9688c6
commit 2057167576

View file

@ -42,8 +42,8 @@ export const properties = {
"md5mesh",
"mdc",
"mdl",
"mesh",
"mesh.xml",
"mesh",
"mot",
"ms3d",
"ndo",
@ -66,6 +66,10 @@ export const properties = {
"stp",
"ter",
"uc",
"usd",
"usda",
"usdc",
"usdz",
"vta",
"x",
"x3d",
@ -78,30 +82,31 @@ export const properties = {
},
to: {
muxer: [
"collada",
"x",
"stp",
"obj",
"objnomtl",
"stl",
"stlb",
"ply",
"plyb",
"3ds",
"gltf2",
"glb2",
"gltf",
"glb",
"3mf",
"assbin",
"assjson",
"assxml",
"x3d",
"collada",
"dae",
"fbx",
"fbxa",
"glb",
"glb2",
"gltf",
"gltf2",
"m3d",
"m3da",
"3mf",
"obj",
"objnomtl",
"pbrt",
"assjson",
"ply",
"plyb",
"stl",
"stlb",
"stp",
"x",
"x3d",
],
},
};
@ -116,7 +121,6 @@ export async function convert(
): Promise<string> {
// let command = "ffmpeg";
const command = `assimp export "${filePath}" "${targetPath}"`;
return new Promise((resolve, reject) => {