ensure the final vertex in a spline cannot be deleted using a manipulator

Signed-off-by: hultonha <hultonha@amazon.co.uk>
This commit is contained in:
hultonha
2021-07-13 17:51:06 +01:00
parent 1220ea6539
commit b0707d3295
2 changed files with 56 additions and 4 deletions
@@ -1145,6 +1145,12 @@ namespace AzToolsFramework
{
if (interaction.m_keyboardModifiers.Alt())
{
if (!CanDeleteSelection<Vertex>(entityComponentIdPair.GetEntityId(), /*selectedCount=*/1))
{
ShowVertexDeletionWarning();
return;
}
SafeRemoveVertex<Vertex>(entityComponentIdPair, vertexIndex);
}
else