mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-10 13:32:36 +08:00
Do deep copy for imgs on copy to clipspace.
This commit is contained in:
parent
65a005e9a2
commit
254aa024f6
@ -146,7 +146,10 @@ export class ComfyApp {
|
|||||||
if(this.widgets) {
|
if(this.widgets) {
|
||||||
widgets = this.widgets.map(({ type, name, value }) => ({ type, name, value }));
|
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 };
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user