Reproduction Steps
-
Place file: AvatarEditorService_GetOutfits_Issue.rbxl (39.1 KB)
-
Upon play-testing the game, allow access to read your inventory, and watch the output as the code scans through the :GetOutfits() results. By default, the workaround method is disabled and you will notice multiple outfits get detected as “duplicates”, and the number of contents per page is inconsistent.
Expected Behavior
OutfitPages should fill each page correctly and not duplicate outfits.
Actual Behavior
When iterating through the OutfitPages after calling AvatarEditorService:GetOutfits(Enum.OutfitSource.All, Enum.OutfitType.Avatar)
, the number of contents per page is inconsistent and multiple outfits are “duplicated”. It seems that all the outfits get put into the first page, and any following pages include duplicates. Additionally, assuming the above is true, the .IsFinished is inaccurate as it is not set to true after the first page.
Workaround
Currently, the workaround is to not iterate past the first page. I can also add an if-statement to my code to check if an outfit has already been added to a table of outfits, but this is not ideal as it should not be neccessary.
Issue Area: Engine
Issue Type: Other
Impact: Moderate
Frequency: Constantly
Date First Experienced: 2022-12-22 12:12:00 (-08:00)
Date Last Experienced: 2022-12-22 00:12:00 (-08:00)