Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
6174 committed Jul 10, 2024
1 parent 9e7c7c0 commit e20a2ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/comfyui-bridge/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export function createPrompt(workflowSource: PersistedWorkflowDocument, widgets:
// set random value
for (const [property, value] of Object.entries(fields)) {
const input = widgets[node.value.widget].input.required[property]
if (input && Input.isInt(input) && value === -1) {
if (input && Input.isInt(input) && value === -1 && Widget.isSeedParam(property)) {
fields[property] = Math.trunc(Math.random() * input[1].max!)
}
}
Expand Down

0 comments on commit e20a2ea

Please sign in to comment.