From f62ed43209e2403fa8270924186dc8f6a6cf9100 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sat, 5 Dec 2020 15:44:33 +0100 Subject: [PATCH] update imgui entt editor --- framework/imgui/src/mm/imgui/imgui_entt_entity_editor.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/framework/imgui/src/mm/imgui/imgui_entt_entity_editor.hpp b/framework/imgui/src/mm/imgui/imgui_entt_entity_editor.hpp index 351acfc..d8a5eec 100644 --- a/framework/imgui/src/mm/imgui/imgui_entt_entity_editor.hpp +++ b/framework/imgui/src/mm/imgui/imgui_entt_entity_editor.hpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include @@ -69,7 +70,6 @@ template class EntityEditor { public: using Registry = entt::basic_registry; - //using ComponentTypeID = ENTT_ID_TYPE; using ComponentTypeID = entt::id_type; struct ComponentInfo { @@ -93,9 +93,8 @@ public: template ComponentInfo& registerComponent(const ComponentInfo& component_info) { - //auto index = entt::type_info::id(); auto index = entt::type_hash::value(); - [[maybe_unused]] auto [it, insert_result] = component_infos.insert_or_assign(index, component_info); + auto [it, insert_result] = component_infos.insert_or_assign(index, component_info); MM_IEEE_ASSERT(insert_result); return std::get(*it); }