Fix SimpleLoadImageWithMetadata

This commit is contained in:
KLL535
2025-03-10 00:53:41 +03:00
parent d6b64aafb3
commit 19a75b10ee
3 changed files with 17 additions and 27 deletions
+13 -6
View File
@@ -1,9 +1,16 @@
import { app } from "/scripts/app.js";
app.registerExtension({
name: "Simple Load Image With Metadata",
async beforeRegisterNodeDef(nodeType, nodeData, app) {
if (nodeData.name === "Simple Load Image With Metadata") {
nodeData.input.required.upload = ["IMAGEUPLOAD"];
}
},
name: "Simple Load Image With Metadata",
async beforeRegisterNodeDef(nodeType, nodeData, app) {
if (nodeData.name === "Simple Load Image With Metadata") {
nodeData.INPUT_TYPES = {
upload: {
type: "IMAGEUPLOAD",
required: true,
default: null
}
};
}
},
});