mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-26 22:30:19 +08:00
fixed double text with old workflow
This commit is contained in:
parent
d8c8bd1603
commit
5b3274371a
@ -49,7 +49,7 @@ app.registerExtension({
|
||||
this.properties.showOutputText = RerouteNode.defaultVisibility;
|
||||
|
||||
this.addInput("", "*", {nameLocked: true});
|
||||
this.addOutput(this.properties.showOutputText ? "*" : "", "*", {nameLocked: true});
|
||||
this.addOutput("", "*", {nameLocked: true});
|
||||
|
||||
this.inputs[0].dir = LiteGraph.LEFT;
|
||||
this.outputs[0].dir = LiteGraph.RIGHT;
|
||||
@ -74,8 +74,11 @@ app.registerExtension({
|
||||
if (!this.inputs[0].dir) { this.inputs[0].dir = LiteGraph.LEFT; }
|
||||
if (!this.outputs[0].dir) { this.outputs[0].dir = LiteGraph.RIGHT; }
|
||||
|
||||
if (this.inputs[0].label) { this.inputs[0].label = "" }
|
||||
if (this.outputs[0].label) { this.outputs[0].label = "" }
|
||||
if (this.inputs[0].name !== "") { this.inputs[0].name = "" }
|
||||
if (this.outputs[0].name !== "") { this.outputs[0].name = "" }
|
||||
|
||||
if (this.inputs[0].label) { delete this.inputs[0].label; }
|
||||
if (this.outputs[0].label) { delete this.outputs[0].label; }
|
||||
|
||||
if (!this.inputs[0].nameLocked) { this.inputs[0].nameLocked = true }
|
||||
if (!this.outputs[0].nameLocked) { this.outputs[0].nameLocked = true }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user