Check glb file manually on Windows (#3198)

This commit is contained in:
Christian Byrne
2025-03-22 21:09:56 -07:00
committed by GitHub
parent cbb585fe25
commit 2b6b8a5ecc

View File

@@ -1392,7 +1392,10 @@ export class ComfyApp {
} else {
this.showErrorOnFileLoad(file)
}
} else if (file.type === 'model/gltf-binary') {
} else if (
file.type === 'model/gltf-binary' ||
file.name?.endsWith('.glb')
) {
const gltfInfo = await getGltfBinaryMetadata(file)
if (gltfInfo.workflow) {
this.loadGraphData(gltfInfo.workflow, true, true, fileName)