mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-10 05:15:05 +08:00
Update setgetnodes.js
This commit is contained in:
parent
0adab07d1a
commit
698d958085
@ -481,6 +481,9 @@ app.registerExtension({
|
|||||||
|
|
||||||
getInputLink(slot) {
|
getInputLink(slot) {
|
||||||
const setter = this.findSetter(this.graph);
|
const setter = this.findSetter(this.graph);
|
||||||
|
if (this.mode !== 0) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
if (setter) {
|
if (setter) {
|
||||||
const slotInfo = setter.inputs[slot];
|
const slotInfo = setter.inputs[slot];
|
||||||
@ -520,6 +523,11 @@ app.registerExtension({
|
|||||||
}
|
}
|
||||||
|
|
||||||
onDrawForeground(ctx, lGraphCanvas) {
|
onDrawForeground(ctx, lGraphCanvas) {
|
||||||
|
if (this.mode === 4) {
|
||||||
|
console.log(`Mode is ${this.mode}, setting to disabled`)
|
||||||
|
this.mode = 2;
|
||||||
|
return null;
|
||||||
|
}
|
||||||
if (this.drawConnection) {
|
if (this.drawConnection) {
|
||||||
this._drawVirtualLink(lGraphCanvas, ctx);
|
this._drawVirtualLink(lGraphCanvas, ctx);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user