mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7880] [MERGED] fix(avatars): mesh avatar mouths fit the drawing and close between words #7979
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#7979
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/7880
Author: @SpicyMarinara
Created: 10/20/2026
Status: ✅ Merged
Merged: 10/20/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/mesh-painted-mouth-fit-20261020📝 Commits (1)
7c1c262fix(avatars): fit painted mesh mouths and follow speech openness📊 Changes
12 files changed (+371 additions, -48 deletions)
View changed files
📝
docs/agents/avatars.md(+1 -1)📝
packages/client/src/features/avatars/renderers/mesh-avatar/mesh-avatar-face.ts(+2 -1)📝
packages/client/src/features/avatars/renderers/mesh-avatar/mesh-avatar-renderer.ts(+6 -1)📝
packages/server/src/services/avatars/generation/mesh-layer-builder.ts(+68 -1)📝
packages/server/src/services/avatars/generation/mesh-rig-layout.ts(+14 -4)📝
packages/server/src/services/avatars/generation/mesh-rig.ts(+24 -14)➕
patches/mesh-avatar@0.1.1.patch(+13 -0)📝
pnpm-lock.yaml(+5 -2)📝
pnpm-workspace.yaml(+2 -0)📝
scripts/regressions/avatar-2d-renderers.regression.ts(+87 -1)📝
scripts/regressions/avatar-backgrounds.regression.ts(+11 -16)📝
scripts/regressions/avatar-generation.regression.ts(+138 -7)📄 Description
Linked issue
Closes #7878
Why this change
Small sprites produce an oversized painted mesh mouth. Vision-model corners can place that opening below the drawn lip line, creating a double mouth. During text-driven speech, holding a vowel also holds its fixed openness through consonants and word gaps. These three problems were reproduced on Maukie's saved mesh and on synthetic artwork.
What changed
mesh-avatar@0.1.1patch: an explicitmouthOpenparameter must survive the runtime's lip-sync composition. Without this guard the client change is overwritten. This is the sole dependency-file exception: patch registration and lockfile hash; no dependency version or client manifest change.Remake Maukie's mesh after this merges
In 2D Avatars, choose Maukie, then Make an avatar from a sprite → Mesh avatar. Choose his original neutral sprite and a chat connection that can see pictures, select Make mesh avatar, check the preview outlines, then select Save as mesh avatar. This saves the corrected size and placement in his mesh. The speech-clock change also applies to existing meshes without remaking them.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdRecorded results:
pnpm check: passed, including production builds, localization, format, lint and type checks. After the additional background fixture correction, its focused regression and formatting passed; final script type checks also passed.node scripts/run-regressions.mjs --filter avatar-: 21/21 passed, including generation, backgrounds, renderers, voice sync and importer coverage.pnpm smoke:ui: 7/7 passed, one desktop Chromium worker./api/healthand the compiled SPA both returned HTTP200. The frozen installs in both image stages accepted the patch.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Docs for translation:
docs/agents/avatars.md(one sentence about enlarging small sprites). Translation is coordinated in the existing release translation work; no new docs-i18n issue. No version or storage-format change.The drawn-mouth implementation is parked separately on
fix/mesh-avatar-drawn-sprites-20261020for after release, with no PR. It is not part of this fix.UI evidence (if applicable)
Maukie's before/after mouth and talking sheets were shown locally and remain private under
/tmp/marinara-mesh-painted-mouth-proof-20261020/. His art and mesh are not committed or uploaded. Synthetic-only public proof is linked below.Synthetic before/after mouth and talking sheets: download
synthetic-mouth-proof.htmland open it to view both embedded PNGs.synthetic-summary.jsonrecords actual runtime readings. No real artwork is included.Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.