Skip to content

Hair and other "wearables" in character creation and info menu get misaligned if they use a different origin or sourcerect than the head sprite #15833

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
Regalis11 opened this issue Apr 7, 2025 · 1 comment
Assignees
Labels
Bug Something isn't working Code Programming task Ticket The issue has been converted into an issue report.

Comments

@Regalis11
Copy link
Collaborator

Discussed in #15722

Originally posted by A2ur3 March 12, 2025

Disclaimers

  • I have searched the issue tracker to check if the issue has already been reported.
  • My issue happened while using mods.

What happened?

head limb SourceRect="0,0,128,128" Origin="0.5,0.5"

<limb Name="Head (1)" ID="1" Type="Head">
  <sprite SourceRect="0,0,128,128" Origin="0.5,0.5" Depth="0.05" Texture="%ModDir%/Content/Characters/Human/Human_[GENDER]_heads.png" IgnoreTint="False" Color="255,255,255,255" DeadColor="255,255,255,255" DeadColorTime="0" />
</limb>

Hair 25

<Wearable type="Hair" tags="female">
  <sprite name="Hair 25" texture="%ModDir%/Content/Characters/Human/Human_female_hair_2.png" inheritorigin="false" inheritsourcerect="false" origin="0.5,0.25" sourcerect="0,0,256,256" />
</Wearable>

hair is misaligned in character creation/info menus

Reproduction steps

create a hair that does not inherit limb origin and sourcerect

Bug prevalence

Just once

Single player or multiplayer?

Single player

-

No response

Version

v1.7.7.0 (Winter Update)

-

No response

Which operating system did you encounter this bug on?

Windows

Relevant error messages and crash reports

No response

@Regalis11 Regalis11 added Bug Something isn't working Code Programming task Ticket The issue has been converted into an issue report. labels Apr 7, 2025
@Regalis11 Regalis11 self-assigned this Apr 7, 2025
@Regalis11
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Code Programming task Ticket The issue has been converted into an issue report.
Projects
None yet
Development

No branches or pull requests

1 participant