mirror of
https://github.com/ppy/osu.git
synced 2025-02-12 09:53:18 +08:00
Hide catmull curve type when possible
This commit is contained in:
parent
520642975b
commit
360864fd7b
@ -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>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user