mirror of
https://github.com/jags111/efficiency-nodes-comfyui.git
synced 2026-03-21 13:12:13 -03:00
@@ -8,7 +8,8 @@ const findWidgetByName = (node, name) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const doesInputWithNameExist = (node, name) => {
|
const doesInputWithNameExist = (node, name) => {
|
||||||
return node.inputs ? node.inputs.some((input) => input.name === name) : false;
|
// return node.inputs ? node.inputs.some((input) => input.name === name) : false;
|
||||||
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
const HIDDEN_TAG = "tschide";
|
const HIDDEN_TAG = "tschide";
|
||||||
@@ -605,7 +606,9 @@ function handleXYInputControlNetPlotPlotType(node, widget) {
|
|||||||
app.registerExtension({
|
app.registerExtension({
|
||||||
name: "efficiency.widgethider",
|
name: "efficiency.widgethider",
|
||||||
nodeCreated(node) {
|
nodeCreated(node) {
|
||||||
|
if (!nodeWidgetHandlers[node.comfyClass]) return;
|
||||||
for (const w of node.widgets || []) {
|
for (const w of node.widgets || []) {
|
||||||
|
if (!nodeWidgetHandlers[node.comfyClass][w.name]) continue;
|
||||||
let widgetValue = w.value;
|
let widgetValue = w.value;
|
||||||
|
|
||||||
// Store the original descriptor if it exists
|
// Store the original descriptor if it exists
|
||||||
|
|||||||
Reference in New Issue
Block a user