Skip to content

Conversation

@slarticodefast
Copy link
Member

About the PR

Small bug I found with ScaleVisualsComponent.
Needed for #34002

Why / Balance

bugfix

Technical details

When transforming from a human into a dwarf the component is first added, and setting the appearance data adjusts the SpriteComponent accordingly in OnAppearanceChanged. When transforming back into a human the component is removed, and the scale in the SpriteComponent reset without deleting the now unused appearance data. When adding the component again with the same settings, then AppearanceChangedEvent is not raised since the appearance data remains the same. To fix this we properly clear the appearance data when the component is removed.

Requirements

Breaking changes

none

Changelog
nope

@PJBot PJBot added S: Untriaged Status: Indicates an item has not been triaged and doesn't have appropriate labels. S: Approved Status: Reviewed and approved by at least one maintainer; a PR may require another approval. S: Needs Review Status: Requires additional reviews before being fully accepted. Not to be replaced by S: Approved. size/XS Denotes a PR that changes 0-9 lines. labels Aug 6, 2025
Copy link
Contributor

@ScarKy0 ScarKy0 left a comment

Choose a reason for hiding this comment

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

Confirmed this fixes the issue

@slarticodefast slarticodefast added A: Core Tech Area: Underlying core tech for the game and the Github repository. T: Bugfix Type: Bugs and/or bugfixes and removed S: Untriaged Status: Indicates an item has not been triaged and doesn't have appropriate labels. labels Aug 6, 2025
@ScarKy0 ScarKy0 merged commit 2e0b11e into space-wizards:master Aug 6, 2025
11 checks passed
@slarticodefast slarticodefast deleted the fix-scale-removal branch August 6, 2025 18:54
FairlySadPanda pushed a commit to FairlySadPanda/honk-station-15 that referenced this pull request Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A: Core Tech Area: Underlying core tech for the game and the Github repository. S: Approved Status: Reviewed and approved by at least one maintainer; a PR may require another approval. S: Needs Review Status: Requires additional reviews before being fully accepted. Not to be replaced by S: Approved. size/XS Denotes a PR that changes 0-9 lines. T: Bugfix Type: Bugs and/or bugfixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants