Don't make dynamicPrompts the default on multiline string inputs.

This should be less confusing to those who want to use multiline input
without them.
This commit is contained in:
comfyanonymous
2024-04-13 16:12:09 -04:00
parent 58812ab8ca
commit 744ac944db
5 changed files with 8 additions and 8 deletions

View File

@@ -17,7 +17,7 @@ app.registerExtension({
// Locate dynamic prompt text widgets
// Include any widgets with dynamicPrompts set to true, and customtext
const widgets = node.widgets.filter(
(n) => (n.type === "customtext" && n.dynamicPrompts !== false) || n.dynamicPrompts
(n) => n.dynamicPrompts
);
for (const widget of widgets) {
// Override the serialization of the value to resolve dynamic prompts for all widgets supporting it in this node