Skip to content

Commit

Permalink
Solved bug on texture text input, material component
Browse files Browse the repository at this point in the history
  • Loading branch information
Guriva committed May 8, 2018
1 parent a73aab6 commit 8d2685e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LCSEngine/MaterialComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8d2685e

Please sign in to comment.