bugfix: conflict with pyssss/presetText.js

This commit is contained in:
Dr.Lt.Data
2023-07-21 20:56:13 +09:00
parent 35b4ccb80d
commit 72dc11aa73
3 changed files with 6 additions and 12 deletions
+2 -1
View File
@@ -95,7 +95,8 @@ This takes latent as input and outputs latent as the result.
* Switch (image,mask), Switch (latent), Switch (SEGS) - Among multiple inputs, it selects the input designated by the selector and outputs it. The first input must be provided, while the others are optional. However, if the input specified by the selector is not connected, an error may occur.
* ImpactWildcardProcessor - The text is generated by processing the wildcard in the Text. If the mode is set to "populate", a dynamic prompt is generated with each execution and the input is filled in the second textbox. If the mode is set to "fixed", the content of the second textbox remains unchanged.
* When an image is generated with the "fixed" mode, the prompt used for that particular generation is stored in the metadata.
* Known Issue: The presetText.js script from **pythongosssss's [ComfyUI-Custom-Scripts](https://github.com/pythongosssss/ComfyUI-Custom-Scripts)** is causing a conflict, preventing it from being used together.
* Known Issue: The old version of `presetText.js` script from **pythongosssss's [ComfyUI-Custom-Scripts](https://github.com/pythongosssss/ComfyUI-Custom-Scripts)** is causing a conflict, preventing it from being used together.
If you'd installed that extension before (Jul 22, 2023). Please update to latest version.
* RegionalSampler, CombineRegionalPrompts, RegionalPrompt - experimental feature
- multiple region version of TwoAdvancedSamplersForMask
+3 -10
View File
@@ -184,6 +184,7 @@ app.registerExtension({
if(widget.type === "customtext") {
widget.dynamicPrompts = false;
widget.inputEl.placeholder = "wildcard spec: if kept empty, this option will be ignored";
widget.serializeValue = (n,i) => { return n.widgets_values[i]; };
}
}
}
@@ -233,16 +234,8 @@ app.registerExtension({
}
});
// prevent hooking by dynamicPrompt.js
Object.defineProperty(node.widgets[0], "serializeValue", {
set: () => {},
get: () => { return (n,i) => { return n.widgets_values[i]; }; }
});
Object.defineProperty(node.widgets[1], "serializeValue", {
set: () => {},
get: () => { return force_serializeValue; }
});
node.widgets[0].serializeValue = (n,i) => { return n.widgets_values[i]; };
node.widgets[1].serializeValue = force_serializeValue;
}
if (node.comfyClass == "PreviewBridge" || node.comfyClass == "MaskPainter") {
+1 -1
View File
@@ -1,7 +1,7 @@
import configparser
import os
version = "V2.22"
version = "V2.22.1"
dependency_version = 1