Use the path of the loaded model as the base path for all further load/save operations.
PiperOrigin-RevId: 832358035 Change-Id: I44fdf8cd31d755087ebd5ec9f84f5faabe5d0702
This commit is contained in:
committed by
Copybara-Service
parent
a36f452250
commit
999344c998
@@ -92,18 +92,22 @@ class App {
|
||||
// TODO(matijak): Combine this with UiState and identify the list of transient
|
||||
// variables with a comment
|
||||
struct UiTempState {
|
||||
// bool paused = false; // Application starts with the simulation running.
|
||||
bool help = false;
|
||||
bool info = false;
|
||||
bool modal_open = false;
|
||||
bool load_popup = false;
|
||||
std::string last_load_file;
|
||||
bool save_xml_popup = false;
|
||||
std::string last_save_xml_file;
|
||||
bool save_mjb_popup = false;
|
||||
std::string last_save_mjb_file;
|
||||
bool save_screenshot_popup = false;
|
||||
std::string last_save_screenshot_file;
|
||||
bool print_model_popup = false;
|
||||
std::string last_print_model_file;
|
||||
bool print_data_popup = false;
|
||||
std::string last_print_data_file;
|
||||
bool should_exit = false;
|
||||
// bool should_reload = false;
|
||||
bool style_editor = false;
|
||||
bool imgui_demo = false;
|
||||
bool perturb_active = false;
|
||||
|
||||
Reference in New Issue
Block a user