Do deep copy for imgs on copy to clipspace.

This commit is contained in:
Dr.Lt.Data 2023-04-20 23:21:29 +09:00
parent 65a005e9a2
commit 254aa024f6

View File

@ -146,7 +146,10 @@ export class ComfyApp {
if(this.widgets) {
widgets = this.widgets.map(({ type, name, value }) => ({ type, name, value }));
}
ComfyApp.clipspace = { 'widgets': widgets, 'imgs': this.imgs, 'images': this.images };
let img = new Image();
img.src = this.imgs[0].src;
ComfyApp.clipspace = { 'widgets': widgets, 'imgs': [img], 'images': this.images };
}
},
{