mirror of
https://github.com/ppy/osu.git
synced 2025-02-07 09:56:06 +08:00
Delete entire juice stream when only one vertex remains after deleting another vertex
Closes https://github.com/ppy/osu/issues/31425.
This commit is contained in:
parent
ac19124632
commit
9058fd9739
@ -92,7 +92,7 @@ namespace osu.Game.Rulesets.Catch.Edit.Blueprints.Components
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UpdateHitObjectFromPath(JuiceStream hitObject)
|
public virtual void UpdateHitObjectFromPath(JuiceStream hitObject)
|
||||||
{
|
{
|
||||||
// The SV setting may need to be changed for the current path.
|
// The SV setting may need to be changed for the current path.
|
||||||
var svBindable = hitObject.SliderVelocityMultiplierBindable;
|
var svBindable = hitObject.SliderVelocityMultiplierBindable;
|
||||||
|
@ -138,5 +138,13 @@ namespace osu.Game.Rulesets.Catch.Edit.Blueprints.Components
|
|||||||
|
|
||||||
EditorBeatmap?.EndChange();
|
EditorBeatmap?.EndChange();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void UpdateHitObjectFromPath(JuiceStream hitObject)
|
||||||
|
{
|
||||||
|
base.UpdateHitObjectFromPath(hitObject);
|
||||||
|
|
||||||
|
if (hitObject.Path.ControlPoints.Count <= 1 || !hitObject.Path.HasValidLength)
|
||||||
|
EditorBeatmap?.Remove(hitObject);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user