Fix V2 identity queue validation by filling unused ref slots.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-08-26 23:18:45 -05:00
co-authored by Cursor
parent d280985553
commit 054c07ae03
4 changed files with 27 additions and 13 deletions
+2 -7
View File
@@ -234,13 +234,8 @@ function applyV2IdentityPath(
graph['176'].inputs.lora_name = 'minimax_h3_ref2v_turbo_4step_v0.1_comfyui_bf16.safetensors'
}
V2_REF_LOADERS.forEach((id, index) => {
const name = refs[index]
if (name && graph[id]) {
graph[id].inputs.image = name
return
}
delete graph[id]
if (graph['155']?.inputs) delete graph['155'].inputs[`ref_images.ref_image_${index + 1}`]
if (!graph[id]) return
graph[id].inputs.image = refs[index] || params.imageName
})
if (graph['150']?.inputs) graph['150'].inputs.value = true
return