Fix drawing img on collapsed nodes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user