Add proper connection layout to any switch. Fix #68

This commit is contained in:
rgthree
2023-12-05 21:25:56 -05:00
parent 47d946765a
commit f612c8482f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ class AnySwitchforMixin extends RgthreeBaseNode {
AnySwitchforMixin.category = (nodeType as any).category;
});
applyMixins(nodeType, [RgthreeBaseNode, AnySwitchforMixin]);
addConnectionLayoutSupport(nodeType, app, [["Left"], ["Right"]]);
addConnectionLayoutSupport(nodeType, app, [["Left", "Right"], ["Right", "Left"]]);
}
}
+1 -1
View File
@@ -54,7 +54,7 @@ class AnySwitchforMixin extends RgthreeBaseNode {
AnySwitchforMixin.category = nodeType.category;
});
applyMixins(nodeType, [RgthreeBaseNode, AnySwitchforMixin]);
addConnectionLayoutSupport(nodeType, app, [["Left"], ["Right"]]);
addConnectionLayoutSupport(nodeType, app, [["Left", "Right"], ["Right", "Left"]]);
}
}
AnySwitchforMixin.comfyClass = "";