1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:47:27 +08:00

Hide catmull curve type when possible

This commit is contained in:
cs 2023-11-15 07:45:28 +01:00
parent 520642975b
commit 360864fd7b

View File

@ -371,7 +371,11 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
curveTypeItems.Add(createMenuItemForPathType(PathType.PERFECT_CURVE));
curveTypeItems.Add(createMenuItemForPathType(PathType.BEZIER));
curveTypeItems.Add(createMenuItemForPathType(PathType.BSpline(3)));
curveTypeItems.Add(createMenuItemForPathType(PathType.CATMULL));
var hoveredPiece = Pieces.FirstOrDefault(p => p.IsHovered);
if (hoveredPiece?.ControlPoint.Type == PathType.CATMULL)
curveTypeItems.Add(createMenuItemForPathType(PathType.CATMULL));
var menuItems = new List<MenuItem>
{