mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-09 20:08:57 +03:00
Can now delete entity pressing delete
This commit is contained in:
@@ -787,6 +787,11 @@ namespace Nuake {
|
||||
m_IsRenaming = true;
|
||||
}
|
||||
|
||||
if (!m_IsRenaming && Selection.Type == EditorSelectionType::Entity && Input::IsKeyPressed(Key::DELETE))
|
||||
{
|
||||
QueueDeletion = Selection.Entity;
|
||||
}
|
||||
|
||||
if (ImGui::BeginPopupContextItem())
|
||||
{
|
||||
Selection = EditorSelection(e);
|
||||
@@ -804,7 +809,7 @@ namespace Nuake {
|
||||
}
|
||||
ImGui::Separator();
|
||||
}
|
||||
|
||||
|
||||
if (ImGui::Selectable("Remove"))
|
||||
{
|
||||
QueueDeletion = e;
|
||||
|
||||
Reference in New Issue
Block a user