diff --git a/include/NazaraEditor/Core/Reflection/Core.hpp b/include/NazaraEditor/Core/Reflection/Core.hpp index b0bd625..31af127 100644 --- a/include/NazaraEditor/Core/Reflection/Core.hpp +++ b/include/NazaraEditor/Core/Reflection/Core.hpp @@ -78,24 +78,24 @@ namespace Nz namespace EditorImgui { template - static bool Begin(ArrayEntry& obj, const std::string& name, const std::string& tooltip) + inline bool Begin(ArrayEntry& obj, const std::string& name, const std::string& tooltip) { ImGui::BeginGroup(); } template - static void End(ArrayEntry&) { + inline void End(ArrayEntry&) { ImGui::EndGroup(); } template - static bool Begin(std::array& obj, const std::string& name, const std::string& tooltip) + inline bool Begin(std::array& obj, const std::string& name, const std::string& tooltip) { return ImGui::TreeNode(name.c_str()); } template - static void End(std::array&) { + inline void End(std::array&) { ImGui::TreePop(); } } @@ -123,13 +123,13 @@ namespace Nz namespace EditorImgui { - static bool Begin(entt::handle& obj, const std::string& name, const std::string& tooltip) + inline bool Begin(entt::handle& obj, const std::string& name, const std::string& tooltip) { std::string n = "Entity " + name; return ImGui::TreeNode(n.c_str()); } - static void End(entt::handle&) { + inline void End(entt::handle&) { ImGui::TreePop(); } }