From 2b6b8a5ecc56575450b94a3b4bd7fcf953dcd142 Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Sat, 22 Mar 2025 21:09:56 -0700 Subject: [PATCH] Check glb file manually on Windows (#3198) --- src/scripts/app.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/scripts/app.ts b/src/scripts/app.ts index 1789db352..d673a755a 100644 --- a/src/scripts/app.ts +++ b/src/scripts/app.ts @@ -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)