Fix various MuJoCo Studio build issues on Windows, MacOS and Linux

PiperOrigin-RevId: 833313973
Change-Id: I7ec181374e0bb49c32420d025044c31f6fc3c657
This commit is contained in:
Matija Kecman
2025-11-17 06:34:43 -08:00
committed by Copybara-Service
parent a66cf303f8
commit 8eca9926dc
16 changed files with 108 additions and 67 deletions
+2 -2
View File
@@ -176,8 +176,8 @@ void App::OnModelLoaded(std::string_view model_file) {
window_->SetTitle("MuJoCo Studio : " + std::string(model_file));
tmp_.last_load_file = std::string(model_file_);
std::filesystem::path path(model_file_);
base_path = std::string(path.parent_path()) + "/";
model_name = std::string(path.stem());
base_path = path.parent_path().string() + "/";
model_name = path.stem().string();
} else {
window_->SetTitle("MuJoCo Studio");
tmp_.last_load_file = base_path;