Skip to content

Fixed wrong skin review model#6046

Merged
Glavo merged 19 commits intoHMCL-dev:mainfrom
ShulkerSakura:FixSkinModel
May 4, 2026
Merged

Fixed wrong skin review model#6046
Glavo merged 19 commits intoHMCL-dev:mainfrom
ShulkerSakura:FixSkinModel

Conversation

@ShulkerSakura
Copy link
Copy Markdown
Contributor

Comment thread HMCL/src/main/java/org/jackhuang/hmcl/ui/skin/SkinMultipleCubes.java Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes incorrect UV mapping in the skin preview player model rendering (Issue #5890) by correcting left/right face handling in the 3D skin mesh generation.

Changes:

  • Swap LEFT/RIGHT face X translation directions in SkinMultipleCubes so faces are positioned on the correct side of the model.
  • Swap the LEFT/RIGHT face triangle definitions in SkinCube.Model#createFaces() to align UVs with the correct cube sides.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
HMCL/src/main/java/org/jackhuang/hmcl/ui/skin/SkinMultipleCubes.java Corrects LEFT/RIGHT face placement by flipping X translations.
HMCL/src/main/java/org/jackhuang/hmcl/ui/skin/SkinCube.java Corrects LEFT/RIGHT face triangle/UV mapping by swapping face definitions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread HMCL/src/main/java/org/jackhuang/hmcl/ui/skin/SkinCube.java Outdated
Comment thread HMCL/src/main/java/org/jackhuang/hmcl/ui/skin/SkinCube.java
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@Glavo Glavo merged commit 007bb34 into HMCL-dev:main May 4, 2026
2 checks passed
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.

4 participants