Fix parsing workflows from 3d outputs on Windows (#3196)

This commit is contained in:
Christian Byrne
2025-03-23 11:42:57 -07:00
committed by GitHub
parent 564c4d557f
commit 17834459a1

View File

@@ -1457,7 +1457,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)