diff options
Diffstat (limited to 'source/30-game/Material.cpp')
-rw-r--r-- | source/30-game/Material.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/30-game/Material.cpp b/source/30-game/Material.cpp index e648970..9b0c42d 100644 --- a/source/30-game/Material.cpp +++ b/source/30-game/Material.cpp @@ -3,9 +3,11 @@ #include "AppConfig.hpp" #include "EditorCore.hpp" #include "EditorUtils.hpp" -#include "RapidJsonHelper.hpp" -#include "ScopeGuard.hpp" -#include "Utils.hpp" + +#include <Metadata.hpp> +#include <RapidJsonHelper.hpp> +#include <ScopeGuard.hpp> +#include <Utils.hpp> #include <imgui.h> #include <rapidjson/document.h> @@ -349,7 +351,7 @@ void IresMaterial::ShowEditor(IEditor& editor) { IresObject::ShowReferenceNull(editor); } if (ImGui::BeginDragDropTarget()) { - if (auto payload = ImGui::AcceptDragDropPayload(ToString(KD_Shader).data())) { + if (auto payload = ImGui::AcceptDragDropPayload(Metadata::EnumToString(KD_Shader).data())) { auto shader = *static_cast<IresShader* const*>(payload->Data); mInstance->SetShader(shader->GetInstance()); } |