Merge branch 'add-defaultInput' of https://github.com/chrisgoringe/ComfyUI

This commit is contained in:
comfyanonymous
2023-09-10 03:18:05 -04:00
2 changed files with 5 additions and 1 deletions

View File

@@ -1248,6 +1248,10 @@ export class ComfyApp {
if (!config.widget.options) config.widget.options = {};
config.widget.options.forceInput = inputData[1].forceInput;
}
if(widgetCreated && inputData[1]?.defaultInput && config?.widget) {
if (!config.widget.options) config.widget.options = {};
config.widget.options.defaultInput = inputData[1].defaultInput;
}
}
for (const o in nodeData["output"]) {