Skip to content

Commit

Permalink
Merge pull request #6003 from decentraland/hotfix/outfits-do-not-equi…
Browse files Browse the repository at this point in the history
…p-correctly

hotfix: outfits are not being equipped correctly
  • Loading branch information
sandrade-dcl authored Dec 6, 2023
2 parents 24cc5b6 + 6acd12a commit 3c77ad9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}"); }
Expand All @@ -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);

Expand Down

0 comments on commit 3c77ad9

Please sign in to comment.