mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-10 05:22:34 +08:00
add original_imgs into clipspace
* Preserve the original image when 'imgs' are modified
This commit is contained in:
parent
f5b46d3837
commit
2c21210c72
@ -149,7 +149,12 @@ export class ComfyApp {
|
|||||||
|
|
||||||
let img = new Image();
|
let img = new Image();
|
||||||
img.src = this.imgs[0].src;
|
img.src = this.imgs[0].src;
|
||||||
ComfyApp.clipspace = { 'widgets': widgets, 'imgs': [img], 'images': this.images };
|
ComfyApp.clipspace = {
|
||||||
|
'widgets': widgets,
|
||||||
|
'imgs': [img],
|
||||||
|
'original_imgs': [img],
|
||||||
|
'images': this.images
|
||||||
|
};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user