Skip to content
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

Fixed issue with new @pixi/color #492

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

SerG-Y
Copy link
Contributor

@SerG-Y SerG-Y commented Mar 17, 2023

Fixed pixijs/pixijs#9277

The issue here is that we pass RGB color (tempRgb array) to utils.rgb2hex as a reference. When we change RGB color it also changes in the shared Color class but doesn't recalculate the number.
Code line related to this issue;
https://github.com/pixijs/pixijs/blob/03d68ec26c786c7cb730392603340de319393db6/packages/color/src/Color.ts#L187

@miltoncandelero miltoncandelero merged commit 54e162e into pixijs-userland:master Mar 20, 2023
@miltoncandelero
Copy link
Contributor

Ohhhhh, got it!
No idea why it didn't explode on all examples but I totally understand the issue 👍

@codingchili codingchili mentioned this pull request May 22, 2023
miltoncandelero added a commit that referenced this pull request May 25, 2023
This reverts commit 54e162e, reversing
changes made to 7903e9d.
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.

Bug: New 🌈 Color change broke pixi-spine tint
2 participants