mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-09 13:02:31 +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();
|
||||
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