1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-18 23:57:22 +08:00

Fix incorrect slider length in timeline when non-default velocity is inherited from previous object

This commit is contained in:
Dean Herbert 2022-09-05 16:17:26 +09:00
parent 57954bb8f5
commit 8af8adf22d

View File

@ -89,6 +89,11 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
HitObject.DifficultyControlPoint = nearestDifficultyPoint ?? new DifficultyControlPoint();
HitObject.Position = ToLocalSpace(result.ScreenSpacePosition);
// Replacing the DifficultyControlPoint above doesn't trigger any kind of invalidation.
// Without re-applying defaults, velocity won't be updated.
// If this causes further issues, it may be better to copy the velocity p
ApplyDefaultsToHitObject();
break;
case SliderPlacementState.Body: