mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-20 03:13:30 +00:00
Fix drawing img on collapsed nodes
This commit is contained in:
parent
d4486f8284
commit
b6487b3ec9
@ -265,6 +265,7 @@ function onObjectInfo(json) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MyNode.prototype.onDrawBackground = function(ctx) {
|
MyNode.prototype.onDrawBackground = function(ctx) {
|
||||||
|
if(!this.flags.collapsed) {
|
||||||
const output = nodeOutputs[this.id + ""];
|
const output = nodeOutputs[this.id + ""];
|
||||||
if(output && output.images) {
|
if(output && output.images) {
|
||||||
const src = output.images[0];
|
const src = output.images[0];
|
||||||
@ -300,6 +301,7 @@ function onObjectInfo(json) {
|
|||||||
ctx.drawImage(this.img, x, y, w, h);
|
ctx.drawImage(this.img, x, y, w, h);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user