Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

robust patch on pasteFromClipspace

Dr.Lt.Data70e02b443f6b
diff --git a/web/scripts/app.js b/web/scripts/app.js
index 27c67fb49..657ea0246 100644
--- a/web/scripts/app.js
+++ b/web/scripts/app.js
@@ -125,10 +125,14 @@ export class ComfyApp {
if(ComfyApp.clipspace.imgs && node.imgs) {
if(node.images && ComfyApp.clipspace.images) {
if(ComfyApp.clipspace['img_paste_mode'] == 'selected') {
- app.nodeOutputs[node.id + ""].images = node.images = [ComfyApp.clipspace.images[ComfyApp.clipspace['selectedIndex']]];
+ node.images = [ComfyApp.clipspace.images[ComfyApp.clipspace['selectedIndex']]];
}
- else
- app.nodeOutputs[node.id + ""].images = node.images = ComfyApp.clipspace.images;
+ else {
+ node.images = ComfyApp.clipspace.images;
+ }
+
+ if(app.nodeOutputs[node.id + ""])
+ app.nodeOutputs[node.id + ""].images = node.images;
}
if(ComfyApp.clipspace.imgs) {