mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +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)
|
private void InputPinConnected(object? sender, SingleValueEventArgs<IPin> e)
|
||||||
{
|
{
|
||||||
if (TrueInput.ConnectedTo.Any() && !FalseInput.ConnectedTo.Any())
|
if (TrueInput.ConnectedTo.Any())
|
||||||
ChangeType(TrueInput.ConnectedTo.First().Type);
|
ChangeType(TrueInput.ConnectedTo.First().Type);
|
||||||
if (FalseInput.ConnectedTo.Any() && !TrueInput.ConnectedTo.Any())
|
else if (FalseInput.ConnectedTo.Any())
|
||||||
ChangeType(FalseInput.ConnectedTo.First().Type);
|
ChangeType(FalseInput.ConnectedTo.First().Type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user