fix boolean input

This commit is contained in:
numz
2024-10-19 23:18:57 +02:00
parent 1f4af86c16
commit 418d875549
+3 -1
View File
@@ -377,7 +377,6 @@ function addWidgetType(root_obj, value){
}
if (type == "BOOLEAN"){
root_obj.addWidget("toggle",field_name, input_value, ()=>{});
const widget = root_obj.inputs.filter(i => i.name === field_name);
if(widget.length > 0)
@@ -759,6 +758,9 @@ app.registerExtension({
app,
)
break;
case "BOOLEAN":
this.addOutput("output", "BOOLEAN");
this.addWidget("toggle", "default", false, ()=>{});
default:
this.addOutput("output", value);
this.addInput("default", value);