This commit is contained in:
comfyanonymous
2023-03-09 13:30:19 -05:00
5 changed files with 133 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
import { app } from "/scripts/app.js";
// Adds an upload button to the nodes
app.registerExtension({
name: "Comfy.UploadImage",
async beforeRegisterNodeDef(nodeType, nodeData, app) {
if (nodeData.name === "LoadImage" || nodeData.name === "LoadImageMask") {
nodeData.input.required.upload = ["IMAGEUPLOAD"];
}
},
});