Color Picker: fixed a bug that prevented all intensity and interval sliders to show up for flicker lights

This commit is contained in:
biwa 2020-07-09 22:05:30 +02:00
parent 4202b3ea58
commit 69e5ba79b7

View file

@ -135,7 +135,7 @@ namespace CodeImp.DoomBuilder.ColorPicker.Windows
colorPickerSlider1.OnValueChanged += OnSliderValueChanged;
//either both of them or none are used
if(Array.IndexOf(LIGHT_USES_ANGLE_VALUE, referenceThing.DynamicLightType) != -1)
if(Array.IndexOf(LIGHT_USES_ANGLE_VALUE, referenceThing.DynamicLightType.LightNum) != -1)
{
showAllControls = true;
colorPickerSlider2.Label = typeInfo.Args[4].Title + ":";