mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +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) {
|
||||
if(!this.flags.collapsed) {
|
||||
const output = nodeOutputs[this.id + ""];
|
||||
if(output && output.images) {
|
||||
const src = output.images[0];
|
||||
@ -300,6 +301,7 @@ function onObjectInfo(json) {
|
||||
ctx.drawImage(this.img, x, y, w, h);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user