Skip to content

Commit

Permalink
Added delete entity button. #54
Browse files Browse the repository at this point in the history
  • Loading branch information
MStachowicz committed Apr 23, 2023
1 parent 394b00c commit 8a8234f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/UI/Editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,10 @@ namespace UI
}
}

ImGui::Separator();
ImGui::SeparatorText("Quick options");
if (ImGui::Button("Delete entity"))
scene.deleteEntity(pEntity);

ImGui::Separator();
ImGui::TreePop();
}
Expand Down

0 comments on commit 8a8234f

Please sign in to comment.