GUI: possibly fix asset name carry-over issue

issue #1155
This commit is contained in:
tildearrow 2023-06-11 18:20:07 -05:00
parent c51413fe37
commit 7f0dc576d8
3 changed files with 5 additions and 0 deletions

View file

@ -158,9 +158,11 @@ void FurnaceGUI::drawSampleEdit() {
ImGui::Text("Name");
ImGui::SameLine();
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
ImGui::PushID(2+curSample);
if (ImGui::InputText("##SampleName",&sample->name)) {
MARK_MODIFIED;
}
ImGui::PopID();
ImGui::Separator();