1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-12 13:28:33 +00:00

Nodes - Fixed boolean branch node not picking a type if both pins are connected

This commit is contained in:
Robert 2023-09-25 19:34:31 +02:00
parent f990641724
commit 1b0796c68b

View File

@ -38,9 +38,9 @@ public class BooleanBranchNode : Node
private void InputPinConnected(object? sender, SingleValueEventArgs<IPin> e)
{
if (TrueInput.ConnectedTo.Any() && !FalseInput.ConnectedTo.Any())
if (TrueInput.ConnectedTo.Any())
ChangeType(TrueInput.ConnectedTo.First().Type);
if (FalseInput.ConnectedTo.Any() && !TrueInput.ConnectedTo.Any())
else if (FalseInput.ConnectedTo.Any())
ChangeType(FalseInput.ConnectedTo.First().Type);
}