Skip to content

Commit 9f89836

Browse files
committed
misc: default light group component to null
1 parent 5d11821 commit 9f89836

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Runtime/Nodes/Lamps/SetLightSequenceUnit.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected override void Definition()
5656
InputTrigger = ControlInput(nameof(InputTrigger), Process);
5757
OutputTrigger = ControlOutput(nameof(OutputTrigger));
5858

59-
LightGroup = ValueInput<LightGroupComponent>(nameof(LightGroup));
59+
LightGroup = ValueInput<LightGroupComponent>(nameof(LightGroup), null);
6060

6161
Value = ValueInput<float>(nameof(Value), 0);
6262
ColorChannel = ValueInput(nameof(ColorChannel), Engine.Math.ColorChannel.Alpha);

Runtime/Nodes/Lamps/SetLightUnit.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,14 @@ public class SetLightUnit : GleUnit
4646
[PortLabel("Color Channel")]
4747
public ValueInput ColorChannel;
4848

49-
private Player _player;
50-
5149
protected override void Definition()
5250
{
5351
InputTrigger = ControlInput(nameof(InputTrigger), Process);
5452
OutputTrigger = ControlOutput(nameof(OutputTrigger));
5553

5654
LampComponent = ValueInput<Object>(nameof(LampComponent), null);
5755

58-
Value = ValueInput<float>(nameof(Value), 0f);
56+
Value = ValueInput(nameof(Value), 0f);
5957
ColorChannel = ValueInput(nameof(ColorChannel), Engine.Math.ColorChannel.Alpha);
6058

6159
Requirement(LampComponent, InputTrigger);

0 commit comments

Comments
 (0)