From f9a309e8ca03a4263a506b3f403870359396d06e Mon Sep 17 00:00:00 2001 From: Santi Andrade Date: Tue, 5 Dec 2023 14:21:30 +0100 Subject: [PATCH 1/2] Outfits are not being equipped correctly --- .../HUD/BackpackEditorHUDV2/BackpackEditorHUDController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/BackpackEditorHUDV2/BackpackEditorHUDController.cs b/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/BackpackEditorHUDV2/BackpackEditorHUDController.cs index 6aabcd7998..df30304f22 100644 --- a/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/BackpackEditorHUDV2/BackpackEditorHUDController.cs +++ b/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/BackpackEditorHUDV2/BackpackEditorHUDController.cs @@ -171,7 +171,7 @@ private async UniTaskVoid LoadAndEquipOutfitWearables(OutfitItem outfit, Cancell EquipWearable(outfit.outfit.bodyShape, EquipWearableSource.Outfit, setAsDirty: false, updateAvatarPreview: false); foreach (string outfitWearable in outfit.outfit.wearables) - EquipWearable(outfitWearable, EquipWearableSource.Outfit, setAsDirty: true, updateAvatarPreview: true); + EquipWearable(ExtendedUrnParser.GetShortenedUrn(outfitWearable), EquipWearableSource.Outfit, setAsDirty: true, updateAvatarPreview: true); SetAllColors(outfit.outfit.eyes.color, outfit.outfit.hair.color, outfit.outfit.skin.color); From 6acd12abc33e772ace7001e61e0280dd676faec7 Mon Sep 17 00:00:00 2001 From: Santi Andrade Date: Tue, 5 Dec 2023 17:14:13 +0100 Subject: [PATCH 2/2] Update BackpackEditorHUDController.cs --- .../HUD/BackpackEditorHUDV2/BackpackEditorHUDController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/BackpackEditorHUDV2/BackpackEditorHUDController.cs b/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/BackpackEditorHUDV2/BackpackEditorHUDController.cs index df30304f22..2b2d6a6434 100644 --- a/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/BackpackEditorHUDV2/BackpackEditorHUDController.cs +++ b/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/BackpackEditorHUDV2/BackpackEditorHUDController.cs @@ -162,7 +162,7 @@ private async UniTaskVoid LoadAndEquipOutfitWearables(OutfitItem outfit, Cancell foreach (string outfitWearable in outfit.outfit.wearables) { - if (wearablesCatalogService.WearablesCatalog.ContainsKey(outfitWearable)) continue; + if (wearablesCatalogService.WearablesCatalog.ContainsKey(ExtendedUrnParser.GetShortenedUrn(outfitWearable))) continue; try { await wearablesCatalogService.RequestWearableAsync(outfitWearable, cancellationToken); } catch (Exception e) { Debug.LogWarning($"Cannot resolve the wearable {outfitWearable} for the outfit {outfit.slot}"); }