1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 00:02:54 +08:00

Consider all points in a group to meet redundancy check

This commit is contained in:
Dean Herbert 2022-01-19 14:56:44 +09:00
parent 93cd07f7fb
commit 03ac91a3ee

View File

@ -62,6 +62,6 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
/// For display purposes, check whether the proposed group is made redundant by this visualisation group.
/// </summary>
public bool IsVisuallyRedundant(ControlPointGroup other) =>
other.ControlPoints.Any(c => InternalChildren.OfType<IControlPointVisualisation>().Any(c2 => c2.IsVisuallyRedundant(c)));
other.ControlPoints.All(c => InternalChildren.OfType<IControlPointVisualisation>().Any(c2 => c2.IsVisuallyRedundant(c)));
}
}