diff --git a/gui/src/main.cpp b/gui/src/main.cpp index 2c6528f93f46997cf07d1b708a1c557ce9012374..728c8ca428f952d048564a525a3b4ca45d7fbdef 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();