mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7580] [MERGED] fix(avatars): real-file imports, empty VRM expressions and "Make your own model" #7810
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#7810
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/7580
Author: @SpicyMarinara
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/avatars-real-imports📝 Commits (7)
60b63a0fix(avatars): leave empty VRM expressions unset instead of "Set by the model"e265a27docs(avatars): add "Make your own model" and point to the in-app paths6cdee61fix(avatars): point out empty VRM faces that would have taken a slot2c3ac74docs(avatars): say how Blender before 4.2 installs the VRM add-on15038bedocs(avatars): match the guide to what the import does with empty faceseb4fcbcdocs(avatars): say the agents are offered on staging10a30dbMerge remote-tracking branch 'origin/staging' into HEAD📊 Changes
3 files changed (+265 additions, -44 deletions)
View changed files
📝
docs/agents/avatars.md(+60 -4)📝
packages/server/src/services/avatars/formats/vrm.ts(+53 -10)📝
scripts/regressions/avatar-vrm.regression.ts(+152 -30)📄 Description
Linked issue
Refs #7537 (lane: everything via ME, real-file imports and "Make your own model"). The branch starts at
1cd98bc16, the #7554 merge onstaging, after #7555 and #7554 both merged. The fix and guide were written before that: the first commit landed 44 seconds after #7554 merged. Every check below ran on this base. Guide translation follow-up: #7540, whose body now lists the new section (item 4).Why this change
What changed
VRM importer (
formats/vrm.ts):Smile, takes the slot instead.Regression (
avatar-vrm.regression.ts): the fixtures now give a bind to every expression they expect to be bound, as real models have. The bind is an inert material bind, so the stage's three-vrm loader test stays quiet. New checks cover:The new checks fail on the old importer:
an empty mouth shape is not boundgets{ target: 'aa', source: 'preset' }.Guide (
docs/agents/avatars.md):_talkand_blink, PNGTuber Plus costume picture names and Mesh Avatar Studio's drawn variants..vrmaonly from a model set to VRM 1.0.Sweep for manual steps (item 1 of the lane)
Swept: every file under
packages/*/src/**/avatars/**, theavatar-*routes,docs/agents/avatars.md, the otherdocs/agents/*.mdavatar entries,docs/development/optional-agent-packages.md(1.73 section), the avatar e2e specs and helpers, and theavatars.*keys inen.json.stagingat1cd98bc16.Mentioned rather than changed (existing copy and behaviour, not asked to change):
avatars.meshAvatar.descriptionstill reads "Make one in Mesh Avatar Studio." Since #7554 the page can also make one from a sprite. Should the copy say so?.vrmfiles (VrmSetupPanel.tsx,accept=".vrm"). So the guide's older Plain 3D models bullet, which says the import explains why a.glbor.gltfcan't be used, holds only for a file renamed to.vrmor a file dialog that shows all files. A.gltfwith separate files gets the general "Choose a .save, .mavatar, .vrm, .vrma file." Should the pickers also offer.glb, or should that bullet say they take.vrmonly?warnings: string[]. A community UI pack shows them in English. Should import notices get semantic keys? That changes the contract for all eleven notices, so it is not part of this fix.Real files imported through the Agent editor (local only, nothing committed)
Each file went through the real
POST /api/avatar-models/:owner/importroute from the setup page's file inputs. Playwright's file chooser ignores the inputs'acceptfilter, so the plain.glbrow below can't be picked that way by a person (see the mention above). That ran on a local dev server on private ports, with a scratch data dir that was deleted afterwards and Playwright Chromium. Every successful import was then rendered in the setup preview and, for one of each kind, on a Roleplay chat stage with the agent on. I read the screenshots for desktop, and for the phone in four cases.VRM1_Constraint_Twist_Sample.vrm(VRM 1.0)test.vrmafrom three-vrm, "Idle animation added."three-vrm-girl.vrm(VRM 0.x, made in VRoid Studio)Surprised; renders on the setup preview and the chat stage.Seed-san.vrm(VRM 1.0).glb)sphere.vrm(VRM 0.x, no expressions)__MACOSXnoisemiko-qipao/avatar.json).mavataralso imports again through Import .mavatar file..savebuilt permain_scenes/main.gdfrom Codex-generated layers (body, eyes open/closed, angry and happy eyes as costumes 2 and 3, mouth closed/open)angry eyes.pnggives Angry andhappy_eyes.pnggives Happy; talk and blink pictures found; renders in the preview and the chat stage.VRoid Hub's sample avatars need a VRoid account to download, so I did not test them.
three-vrm-girlis a VRoid Studio model under a VRoid Hub licence and stands in for them.Decisions
happy: { overrideBlink: "block" }. I declined: it draws no face, so binding it as Happy brings back the bug, a "Set by the model" face that never changes. It stays pickable by hand, and a regression check covers it..mavatarzips stay refused. Mesh Avatar Studio's own export writes the files at the root. A one-line note in the guide is simpler than teaching the importer to unwrap folders.en.jsonkey, like every avatar import notice (see the mention above). No client code changed, so there are no e2e changes.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent are listed below as results, not as ticked boxes:
pnpm checkon6cdee61a3's code: exit 0. It ran format, localization, impeccable, lint, type checks and the build. The one lint warning is the pre-existing one inHomeProfessorMariChat.tsx. Main entry: 313 kB. The later commit2c3ac741dchanges one docs sentence only.pnpm localization:check: exit 0.node scripts/run-regressions.mjs --filter avatar: 14/14 passed.--filter agent-activation2/2,--filter spatial-context1/1,--filter open-issues1/1.--filter docs-command-searchand--filter docs-language: passed.vrm.tsreverted,avatar-vrmfails at "an empty mouth shape is not bound".avatar-setup,avatar-2d) on desktop and mobile Chromium, on this branch: 20/20 passed. This PR changes no client code.coderabbit review --agent --committed --base-commit 1cd98bc16):6cdee61a3(the custom-face notice, the plain glTF wording), one declined (override-only expressions, see Decisions).2c3ac741d.Review fixes in
15038be87(docs only), on that commit:pnpm check: exit 0. The one lint warning is the pre-existing one inHomeProfessorMariChat.tsx.pnpm localization:check: exit 0.node scripts/run-regressions.mjs --filter avatar: 14/14 passed. Guards:agent-activation2/2,spatial-context1/1,open-issues1/1.docs-command-search1/1,docs-language1/1.coderabbit review --agent --committed --base-commit 1cd98bc16), third run: 0 findings.VRMExpressionLoaderPlugin._v0Import, "has duplicated entries. Ignoring the expression"), and the importer already judges a duplicated name by its first group.Manual verification notes
Steps for Mari on
stagingafter merge:.vrmand import it. Expect "This is a plain 3D model, not a VRM…". Export it again with Draco compression on, rename and import: expect "This model is saved with compression avatars can't load (Draco)…" instead, because compression is checked first.docs/agents/avatars.mdon GitHub and follow Make your own model. Check that the links to Making an avatar from a sprite, Mesh Avatar Studio, PNGTuber sprites and the Blender steps jump to the right headings.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Docs note:
docs/agents/avatars.mdchanged, and the existing follow-up issue #7540 lists the new section; no new issue was opened. No CHANGELOG entry.UI evidence (if applicable)
No screenshot is attached, because the agent can't upload images to a PR. The new notice shows in the setup panel's existing notice list above Faces and mouth shapes, in the same style as "Some faces or mouth shapes have no matching expression…". Manual verification step 2 shows it.
Summary by CodeRabbit
Documentation
.mavatarfiles can be created with Marinara Engine and that both avatar agents are available through Download Agents on staging.Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.