From 80bad608f7f80b2694f612f958287da617bb2a84 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 11 Jan 2025 03:39:38 -0600 Subject: [PATCH] [keel] Fix reloadAsset --- src/olympic/keel/src/media.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/olympic/keel/src/media.cpp b/src/olympic/keel/src/media.cpp index fdbb0111..e3b6804d 100644 --- a/src/olympic/keel/src/media.cpp +++ b/src/olympic/keel/src/media.cpp @@ -154,13 +154,12 @@ ox::Result uuidToPath(Context &ctx, ox::UUID const&uuid) noexce } ox::Error reloadAsset(keel::Context &ctx, ox::StringViewCR assetId) noexcept { - ox::UUIDStr uuidStr; if (beginsWith(assetId, "uuid://")) { return ctx.assetManager.reloadAsset(substr(assetId, 7)); } else { - auto const [uuid, uuidErr] = getUuid(ctx, assetId); + auto const [uuid, uuidErr] = getUuid(ctx, assetId); if (!uuidErr) { - return ctx.assetManager.reloadAsset(uuidStr); + return ctx.assetManager.reloadAsset(uuid.toString()); } else { return ctx.assetManager.reloadAsset(assetId); }