Unverified Commit b6487b3e authored by pythongosssss's avatar pythongosssss Committed by GitHub
Browse files

Fix drawing img on collapsed nodes

parent d4486f82
......@@ -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);
}
}
}
};
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment