From 9dd412e1ebc95acf4afa9558f798359c6feed2f0 Mon Sep 17 00:00:00 2001 From: Pascal <engelerp@phys.ethz.ch> Date: Tue, 25 Jul 2023 14:52:08 +0200 Subject: [PATCH] Fixed bug that avoided drum saving --- gui/src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gui/src/main.cpp b/gui/src/main.cpp index 2c6528f..728c8ca 100644 --- a/gui/src/main.cpp +++ b/gui/src/main.cpp @@ -240,14 +240,16 @@ int main(int argc, char** argv) { ImGui::Text(text.c_str()); char input_text2[256]; ImGui::InputText("Metadata File ", input_text2, IM_ARRAYSIZE(input_text2)); - if (ImGui::Button("Save")) { + if (ImGui::Button("Save2")) { std::string path = METADATA_PATH + std::string(input_text2); MetadataManager::save(path, bottom_drums.name()); } ImGui::SameLine(); - if (ImGui::Button("Load")) { + if (ImGui::Button("Load2")) { std::string path = METADATA_PATH + std::string(input_text2); MetadataManager::load(path, bottom_drums.name()); + //push data to GPU + bottom_drums.setAllObjectStates(MetadataManager::getLayerData(bottom_drums.name())); } ImGui::End(); -- GitLab