From 071cb83fe737bd133d4d8abad17d593508c575d8 Mon Sep 17 00:00:00 2001 From: Haroon Qureshi Date: Mon, 12 Jan 2026 10:58:27 -0800 Subject: [PATCH] Strip the prefix correctly. PiperOrigin-RevId: 855297807 Change-Id: Ic182f64c451077386fdba8bfe34e8da6364b9f60 --- src/experimental/studio/main.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/experimental/studio/main.cc b/src/experimental/studio/main.cc index b45a4e45..86e4b766 100644 --- a/src/experimental/studio/main.cc +++ b/src/experimental/studio/main.cc @@ -33,7 +33,8 @@ ABSL_FLAG(int, window_height, 720, "Window height"); ABSL_FLAG(std::string, model_file, "", "MuJoCo model file."); std::string Resolve(std::string_view path) { - return std::string("assets/") + std::string(path); + std::string_view subpath = path.substr(path.find(':') + 1); + return std::string("assets/") + std::string(subpath); } class FileResource {