When a relay has no inputs connected, use its own mode change as the relay signal.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user