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

Fix Texture.clone() #7365

Merged
merged 2 commits into from Apr 3, 2021
Merged

Fix Texture.clone() #7365

merged 2 commits into from Apr 3, 2021

Conversation

dev7355608
Copy link
Collaborator

Texture.clone() doesn't create a perfect clone. Both orig and frame are cloned and passed to the constructor; consequently, clone.noFrame is always false and clone.frame !== clone.orig.

These changes ensure that texture.noFrame === clone.noFrame and (texture.frame === texture.orig) === (clone.frame === clone.orig).

Pre-Merge Checklist
  • Tests and/or benchmarks are included
  • Lint process passed (npm run lint)
  • Tests passed (npm run test)

@bigtimebuddy bigtimebuddy added this to the v6.0.2 milestone Apr 2, 2021
@ShukantPal ShukantPal added the ✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t label Apr 2, 2021
@bigtimebuddy bigtimebuddy merged commit aadfe0d into pixijs:dev Apr 3, 2021
@bigtimebuddy
Copy link
Member

Thank you @dev7355608 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants