1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 22:22:55 +08:00

Fix catch juice stream vertex remove operation not undoing

This commit is contained in:
Bartłomiej Dach 2024-07-22 13:21:49 +02:00
parent 64381d4087
commit 47964f33d7
No known key found for this signature in database

View File

@ -54,7 +54,11 @@ namespace osu.Game.Rulesets.Catch.Edit.Blueprints.Components
if (e.Button == MouseButton.Left && e.ShiftPressed)
{
changeHandler?.BeginChange();
RemoveVertex(index);
UpdateHitObjectFromPath(juiceStream);
changeHandler?.EndChange();
return true;
}
@ -125,11 +129,17 @@ namespace osu.Game.Rulesets.Catch.Edit.Blueprints.Components
private void deleteSelectedVertices()
{
changeHandler?.BeginChange();
for (int i = VertexCount - 1; i >= 0; i--)
{
if (VertexStates[i].IsSelected)
RemoveVertex(i);
}
UpdateHitObjectFromPath(juiceStream);
changeHandler?.EndChange();
}
}
}