From 8d2685ed5f9d462cccd4573d11779f05e93eddc1 Mon Sep 17 00:00:00 2001 From: Daniel Mateu <32674639+Nyghor@users.noreply.github.com> Date: Tue, 8 May 2018 21:00:31 +0200 Subject: [PATCH] Solved bug on texture text input, material component --- LCSEngine/MaterialComponent.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LCSEngine/MaterialComponent.cpp b/LCSEngine/MaterialComponent.cpp index 1a7e154..66cb643 100644 --- a/LCSEngine/MaterialComponent.cpp +++ b/LCSEngine/MaterialComponent.cpp @@ -67,11 +67,13 @@ void MaterialComponent::drawGUI() }*/ ImGui::PopID(); + ImGui::PushID("Texture"); ImGui::InputText("", &textureName[0], IM_ARRAYSIZE(textureName)); if (ImGui::Button("Set texture")) { textureChanged = true; } + ImGui::PopID(); ImGui::PushID("normalMap"); ImGui::Text("Normal Map:"); ImGui::SameLine(0);