cleanup and removing nasty segv upon entity deletion

+ Fixing bug where clicking an entity in the hierarchy didn't update the
stats
This commit is contained in:
Erris
2026-02-24 18:10:39 +01:00
parent 38b92611be
commit e69764e149
8 changed files with 96 additions and 148 deletions

View File

@@ -196,7 +196,7 @@ namespace OpenEngine {
auto& reg = scene->GetRegistry();
entt::entity handle = selected_context;
if (!selected_context)
if (!selected_context || !entity)
return;
entity.GetComponents<TagComponent>();
@@ -222,7 +222,6 @@ namespace OpenEngine {
if (ImGui::Button("...", ImVec2{ line_height, line_height }))
ImGui::OpenPopup("component_settings");
ImGui::PopStyleColor();
ImGui::PopStyleVar();
if (ImGui::BeginPopup("component_settings")) {