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:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user