mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7617] [MERGED] fix(avatars): preselect the full-body neutral sprite for a mesh avatar #7841
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7841
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7617
Author: @SpicyMarinara
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/mesh-avatar-preselect-neutral📝 Commits (2)
5bdf9b9fix(avatars): preselect the full-body neutral sprite for a mesh avatard12e1f8fix(avatars): say a full-body or bust sprite works best for a mesh avatar📊 Changes
5 files changed (+109 additions, -8 deletions)
View changed files
📝
docs/agents/avatars.md(+1 -1)📝
e2e/avatar-2d.e2e.ts(+85 -2)📝
packages/client/src/features/avatars/generation/MeshAvatarSection.tsx(+16 -3)📝
packages/client/src/features/avatars/renderers/pngtuber/pngtuber-layers.ts(+6 -1)📝
packages/client/src/localization/locales/en.json(+1 -1)📄 Description
Linked issue
No linked issue: requested by the maintainer on 2026-10-14.
Why this change
What changed
The mesh avatar maker now picks the full-body neutral sprite when there is one. Otherwise it picks the neutral portrait. If there's neither, nothing is picked, as before.
Labels are matched the way the avatar code already reads them:
full_neutral,full-neutral,Full NeutralandNeutralall count. This matches sprite labels only, never character names.Until you pick or clear a sprite, the choice follows the sprite list. If the list loads or changes later, the best match is chosen again. Your own pick or a cleared choice is kept. If the sprite you picked is removed, it goes back to the best match, so Make never sends a sprite that no longer exists. (CodeRabbit found that last case. It was possible before this change too.)
Picking a sprite, including the automatic pick, never starts making the avatar.
isFullBodySpriteis now exported frompngtuber-layers.ts, the file that already held the full-body check, and the PNGTuber sprite filter uses it too. There is still only one copy of that check.e2e/avatar-2d.e2e.tshas a new focused test. It mounts the section and redraws it with different sprite lists:[happy, neutral, full_neutral]picksfull_neutral.Full Neutralis also recognized.[happy, neutral]picksneutral.[happy]picks nothing, and Make stays disabled./api/avatar-generationrequest is sent.No copy changes.
The hint under the picker now reads "A front-facing full-body or bust sprite works best." (it recommended only a bust), and
docs/agents/avatars.md→ Mesh avatar step 1 says the full-body neutral sprite is picked for you. The maintainer chose this wording on 2026-10-14. Translations: #7618.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent (results):
pnpm exec playwright test e2e/avatar-2d.e2e.ts -g "preselects" --project=desktop-chromium: failed on unpatched code (no sprite was pressed whenfull neutralwas expected) and passed with the fix.pnpm exec playwright test e2e/avatar-2d.e2e.ts e2e/avatar-setup.e2e.tson desktop-chromium, mobile-chromium and mobile-webkit: 42 passed (before the CodeRabbit follow-up). After the follow-up, the new test passed on all 3 projects.node ./scripts/run-regressions.mjs --filter scripts/regressions/avatar-2d-renderers.regression.ts: passed. The same command with--filter scripts/regressions/avatar-generation.regression.ts: passed.pnpm localization:check: passed.pnpm check: passed (exit 0).coderabbit review --agent --committed): the first run had 1 minor finding (a removed pick kept Make enabled). It was fixed and covered by the test. The rerun had 0 findings.Manual verification notes
neutralandfull_neutralsprites. Under "Mesh avatar",full neutralshould be preselected and "Make mesh avatar" should be enabled.neutral) getsneutralpreselected, and a character with no neutral sprite gets nothing preselected.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
No screenshots. The change only affects which sprite thumbnail starts out selected.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.