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:
parent
f990641724
commit
1b0796c68b
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user