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:
+6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user