From 4ba9e62c31d2eb6ffeb4735a142c981233ec2557 Mon Sep 17 00:00:00 2001 From: NumZ Date: Tue, 25 Mar 2025 01:47:47 +0100 Subject: [PATCH] Forgot IMAGE NODE as INPUT :p --- README.md | 2 +- web/js/jsnodes.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f793bb6..cf4a112 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ After this command be created folder Comfyui-FlowChain | | Name | Description | ComfyUI category | |:-------------------------------------------------:|:--------------------|:------------------------------------------------------------------------------------------------------------:|:----------------:| -| | _Workflow_ | Node that allows loading workflows in API format. It will show Inputs and Outputs into the loaded Workflows | FlowChain ⛓️ | +| | _Workflow_ | Node that allows loading workflows. It will show Inputs and Outputs into the loaded Workflows | FlowChain ⛓️ | | | _Workflow Input_ | Node used to declare the inputs of your workflows. | FlowChain ⛓️ | | | _Workflow Output_ | Node used to declare the outputs of your workflows. | FlowChain ⛓️ | | | _Workflow Continue_ | Node to stop/Continue the workflow process. | FlowChain ⛓️ | diff --git a/web/js/jsnodes.js b/web/js/jsnodes.js index 148390a..954edf4 100644 --- a/web/js/jsnodes.js +++ b/web/js/jsnodes.js @@ -639,6 +639,7 @@ function addWidgets(root_obj, field_name, value, app){ // Stocker la définition localement root_obj.local_input_defs.required[field_name] = ["STRING", {}]; } + if (type == "IMAGE") root_obj.addInput(field_name, "IMAGE"); if (type == "LATENT") root_obj.addInput(field_name, "LATENT"); if (type == "MODEL") root_obj.addInput(field_name, "MODEL"); if (type == "CLIP") root_obj.addInput(field_name, "CLIP");