mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 03:42:58 +08:00
Fix catch juice stream vertex remove operation not undoing
This commit is contained in:
parent
64381d4087
commit
47964f33d7
@ -54,7 +54,11 @@ namespace osu.Game.Rulesets.Catch.Edit.Blueprints.Components
|
|||||||
|
|
||||||
if (e.Button == MouseButton.Left && e.ShiftPressed)
|
if (e.Button == MouseButton.Left && e.ShiftPressed)
|
||||||
{
|
{
|
||||||
|
changeHandler?.BeginChange();
|
||||||
RemoveVertex(index);
|
RemoveVertex(index);
|
||||||
|
UpdateHitObjectFromPath(juiceStream);
|
||||||
|
changeHandler?.EndChange();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -125,11 +129,17 @@ namespace osu.Game.Rulesets.Catch.Edit.Blueprints.Components
|
|||||||
|
|
||||||
private void deleteSelectedVertices()
|
private void deleteSelectedVertices()
|
||||||
{
|
{
|
||||||
|
changeHandler?.BeginChange();
|
||||||
|
|
||||||
for (int i = VertexCount - 1; i >= 0; i--)
|
for (int i = VertexCount - 1; i >= 0; i--)
|
||||||
{
|
{
|
||||||
if (VertexStates[i].IsSelected)
|
if (VertexStates[i].IsSelected)
|
||||||
RemoveVertex(i);
|
RemoveVertex(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UpdateHitObjectFromPath(juiceStream);
|
||||||
|
|
||||||
|
changeHandler?.EndChange();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user