Skip to content

fix: wrapClamp direction during deserialization #2449

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

Merged
merged 2 commits into from
Oct 17, 2023

Conversation

apple502j
Copy link
Contributor

Resolves

Resolves scratchfoundation/scratch-gui#5806

Proposed Changes

wrapClamp direction during deserialization

Reason for Changes

Scratch 1.4 projects can have direction of -270. Since Scratch 3.0 expects direction to be -179-180, there are some bugs that is caused by this. This may break projects saved in Scratch 1.4 that uses direction block, but it's the 2.0 behavior anyway (see ScratchObject's setDirection behavior)

Scratch 1.x projects are handled in sb2.js part. Scratch 1.x projects that are serialized to SB3 can still have this issue, so it will handle in sb3.js as well

@ericrosenbaum ericrosenbaum modified the milestones: Schedule Review, July 2020 Jun 11, 2020
@kchadha kchadha removed their assignment Aug 5, 2022
@cwillisf cwillisf changed the title wrapClamp direction during deserialization fix: wrapClamp direction during deserialization Sep 13, 2022
@cwillisf cwillisf self-requested a review September 13, 2022 14:29
@cwillisf cwillisf self-assigned this Sep 13, 2022
@cwillisf cwillisf merged commit 2ae6759 into scratchfoundation:develop Oct 17, 2023
github-actions bot pushed a commit that referenced this pull request Oct 17, 2023
fix: wrapClamp direction during deserialization
@github-actions
Copy link

🎉 This PR is included in version 2.1.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Weird direction behaviour
4 participants