mirror of
https://github.com/ppy/osu.git
synced 2025-03-02 03:03:21 +08:00
Merge pull request #28522 from bdach/better-slider-selection-box-size
Extend slider selection box bounds to contain all control points inside
This commit is contained in:
commit
505b85432d
@ -55,7 +55,21 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
|
|||||||
[Resolved(CanBeNull = true)]
|
[Resolved(CanBeNull = true)]
|
||||||
private BindableBeatDivisor beatDivisor { get; set; }
|
private BindableBeatDivisor beatDivisor { get; set; }
|
||||||
|
|
||||||
public override Quad SelectionQuad => BodyPiece.ScreenSpaceDrawQuad;
|
public override Quad SelectionQuad
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
var result = BodyPiece.ScreenSpaceDrawQuad.AABBFloat;
|
||||||
|
|
||||||
|
if (ControlPointVisualiser != null)
|
||||||
|
{
|
||||||
|
foreach (var piece in ControlPointVisualiser.Pieces)
|
||||||
|
result = RectangleF.Union(result, piece.ScreenSpaceDrawQuad.AABBFloat);
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private readonly BindableList<PathControlPoint> controlPoints = new BindableList<PathControlPoint>();
|
private readonly BindableList<PathControlPoint> controlPoints = new BindableList<PathControlPoint>();
|
||||||
private readonly IBindable<int> pathVersion = new Bindable<int>();
|
private readonly IBindable<int> pathVersion = new Bindable<int>();
|
||||||
|
Loading…
Reference in New Issue
Block a user