mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 09:42:54 +08:00
Fix slider not displaying in timeline during zero-duration placement
This commit is contained in:
parent
a9d1d163bb
commit
42c066e6f2
@ -133,7 +133,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
||||
var comboColours = skin.GetConfig<GlobalSkinColours, IReadOnlyList<Color4>>(GlobalSkinColours.ComboColours)?.Value ?? Array.Empty<Color4>();
|
||||
var comboColour = combo.GetComboColour(comboColours);
|
||||
|
||||
if (HitObject is IHasDuration)
|
||||
if (HitObject is IHasDuration duration && duration.Duration > 0)
|
||||
circle.Colour = ColourInfo.GradientHorizontal(comboColour, comboColour.Lighten(0.4f));
|
||||
else
|
||||
circle.Colour = comboColour;
|
||||
|
Loading…
Reference in New Issue
Block a user