1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 23:42:54 +08:00
osu-lazer/osu.Game.Rulesets.Osu/Objects/Drawables
Bartłomiej Dach bbdd85020c
Fix slider tails sometimes not dimming correctly
Originally noticed during review of another change:
https://github.com/ppy/osu/pull/27369#issuecomment-1966140198.

`DrawableOsuHitObject` tries to solve the initial dimming of objects
by applying transform to a list of dimmable parts. For plain drawables
this is safe, but if one of the parts is a DHO, it is not safe,
because drawable transforms can be cleared at will.

In particular, on first use of a drawable slider,
`UpdateInitialTransforms()` would fire via `LoadComplete()` on the
`DrawableSlider`, but *then*, also via `LoadComplete()`,
the `DrawableSliderTail` would update its own state and by doing so
inadvertently clear the dim transform just added by the slider.

To fix, ensure dim transforms are applied to DHOs
via `ApplyCustomUpdateState`.
2024-02-27 11:45:03 +01:00
..
Connections Automated pass 2023-06-24 01:00:03 +09:00
DrawableHitCircle.cs Apply further changes to remove remaining weirdness 2024-02-05 13:37:38 +01:00
DrawableOsuHitObject.cs Fix slider tails sometimes not dimming correctly 2024-02-27 11:45:03 +01:00
DrawableOsuJudgement.cs Fix SkinnableLighting showing up as a user placeable component 2023-02-17 18:24:05 +09:00
DrawableSlider.cs Don't dim slider head in DrawableSlider 2024-02-24 21:56:44 +01:00
DrawableSliderBall.cs Refactor all slider input into SliderInputManager 2023-12-15 16:13:32 +09:00
DrawableSliderHead.cs Refactor all slider input into SliderInputManager 2023-12-15 16:13:32 +09:00
DrawableSliderRepeat.cs Remove unnecessary second iteration over NestedHitObjects 2024-01-07 14:31:22 +09:00
DrawableSliderTail.cs Add support for showing tick misses 2023-12-20 20:23:19 +09:00
DrawableSliderTick.cs Remove weird red fade that didn't work 2024-01-25 19:31:57 +09:00
DrawableSpinner.cs Reduce allocations in DrawableSpinner 2024-02-24 20:18:30 +03:00
DrawableSpinnerBonusTick.cs Automated pass 2023-06-24 01:00:03 +09:00
DrawableSpinnerTick.cs Apply further changes to remove remaining weirdness 2024-02-05 13:37:38 +01:00
SkinnableLighting.cs Fix SkinnableLighting showing up as a user placeable component 2023-02-17 18:24:05 +09:00
SliderInputManager.cs Reduce allocation overheads in SliderInputManager 2024-01-26 17:49:20 +09:00
SpinnerSpinHistory.cs Rename accumulated rotation variable 2023-10-23 16:46:15 +09:00