This commit is contained in:
Dr.Lt.Data 2023-05-14 14:31:02 +09:00
parent dab72f9452
commit 1957a1cc04

View File

@ -57,7 +57,7 @@ export class ComfyApp {
static onClipspaceEditorSave() { static onClipspaceEditorSave() {
if(ComfyApp.clipspace_return_node) { if(ComfyApp.clipspace_return_node) {
ComfyApp.pasteToClipspace(ComfyApp.clipspace_return_node); ComfyApp.pasteFromClipspace(ComfyApp.clipspace_return_node);
} }
} }
@ -105,7 +105,7 @@ export class ComfyApp {
} }
} }
static pasteToClipspace(node) { static pasteFromClipspace(node) {
if(ComfyApp.clipspace) { if(ComfyApp.clipspace) {
// image paste // image paste
if(ComfyApp.clipspace.imgs && node.imgs) { if(ComfyApp.clipspace.imgs && node.imgs) {
@ -258,7 +258,7 @@ export class ComfyApp {
if(ComfyApp.clipspace != null) { if(ComfyApp.clipspace != null) {
options.push({ options.push({
content: "Paste (Clipspace)", content: "Paste (Clipspace)",
callback: () => { ComfyApp.pasteToClipspace(this); } callback: () => { ComfyApp.pasteFromClipspace(this); }
}); });
} }