mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-10 13:32:36 +08:00
Make hideWidget safer
This commit is contained in:
parent
c5aba54c8a
commit
400300c9dc
@ -9,6 +9,7 @@ function isConvertableWidget(widget, config) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function hideWidget(node, widget, suffix = "") {
|
function hideWidget(node, widget, suffix = "") {
|
||||||
|
if (widget.type.includes(CONVERTED_TYPE)) { return; } // already hidden, don't do it again
|
||||||
widget.origType = widget.type;
|
widget.origType = widget.type;
|
||||||
widget.origComputeSize = widget.computeSize;
|
widget.origComputeSize = widget.computeSize;
|
||||||
widget.origSerializeValue = widget.serializeValue;
|
widget.origSerializeValue = widget.serializeValue;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user