Fix various MuJoCo Studio build issues on Windows, MacOS and Linux
PiperOrigin-RevId: 833313973 Change-Id: I7ec181374e0bb49c32420d025044c31f6fc3c657
This commit is contained in:
committed by
Copybara-Service
parent
a66cf303f8
commit
8eca9926dc
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user