When a relay has no inputs connected, use its own mode change as the relay signal.

This commit is contained in:
rgthree
2024-05-04 21:31:07 -04:00
parent 76638e2ddc
commit 2db6c4d73a
7 changed files with 132 additions and 68 deletions
+3 -2
View File
@@ -61,14 +61,15 @@ export class RgthreeBaseNode extends LGraphNode {
}
set mode(mode) {
if (this.mode_ != mode) {
const oldMode = this.mode_;
this.mode_ = mode;
this.onModeChange();
this.onModeChange(oldMode, mode);
}
}
get mode() {
return this.mode_;
}
onModeChange() {
onModeChange(from, to) {
}
async handleAction(action) {
action;