Skip to content

fix(pet): drop stale GLB entries from hydrated custom pet list#1333

Open
AmethystLiang wants to merge 1 commit intoadd-a-pet-for-orcafrom
fix-pet-stale-glb-hydration
Open

fix(pet): drop stale GLB entries from hydrated custom pet list#1333
AmethystLiang wants to merge 1 commit intoadd-a-pet-for-orcafrom
fix-pet-stale-glb-hydration

Conversation

@AmethystLiang
Copy link
Copy Markdown
Contributor

@AmethystLiang AmethystLiang commented May 1, 2026

Summary

  • Pre-refactor persisted customPetModels may contain .glb entries from when the pet overlay rendered 3D models via three.js.
  • The current image-only overlay can't render GLB bytes in an <img> tag, so a legacy entry appeared as a broken row in the pet menu and could resolve as the active petModelId.
  • Filter .glb filenames out of customPetModels during hydration and during the petModelId fallback lookup.

Test plan

  • Launch with a persisted-state snapshot containing a .glb custom pet entry; verify it does not appear in the pet menu and petModelId falls back to default.
  • Launch with only image-based custom pets; verify they still hydrate and are selectable.

Made with Orca 🐋

Pre-refactor persisted customPetModels may contain .glb entries that the
image-based overlay can't render. Filter them on hydration so the pet
menu doesn't show broken rows and petModelId can't resolve to one.

Co-authored-by: Orca <help@stably.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant