Add lora stacker support and fix TriggerWord Toggle node

This commit is contained in:
Will Miao
2025-03-11 20:46:40 +08:00
parent ad56cafd62
commit 79ebe25bc2
8 changed files with 21 additions and 26 deletions

View File

@@ -35,8 +35,12 @@ app.registerExtension({
// Enable widget serialization
node.serialize_widgets = true;
node.addInput("lora_stack", 'LORA_STACK', {
"shape": 7 // 7 is the shape of the optional input
});
// Wait for node to be properly initialized
requestAnimationFrame(() => {
requestAnimationFrame(() => {
// Restore saved value if exists
let existingLoras = [];
if (node.widgets_values && node.widgets_values.length > 0) {