Skip to content

Fix SVGSkin silhouettes #544

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

Conversation

adroitwhiz
Copy link
Contributor

Resolves

Resolves #543

Proposed Changes

This PR implements updateSilhouette for SVGSkins, so that even if an SVGSkin has never been rendered, its silhouette still exists.

This PR also adds a new helper function, _getDrawableScreenSpaceScale, to RenderWebGL. This function's result is now passed to Skin.updateSilhouette so that the skin's silhouette can be properly scaled.

Reason for Changes

This resolves the aforementioned bug, first reported on the Bugs and Glitches forum.

Test Coverage

Incoming...

@adroitwhiz
Copy link
Contributor Author

@fsih is this a hotfix candidate?

@fsih
Copy link
Contributor

fsih commented Jan 10, 2020

Yes, we'll review this for hotfix and hopefully get it in early next week

Copy link
Contributor

@cwillisf cwillisf left a comment

Choose a reason for hiding this comment

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

👍 thanks!

@cwillisf cwillisf self-assigned this Jan 13, 2020
@cwillisf cwillisf merged commit fed02ca into scratchfoundation:develop Jan 13, 2020
@fsih
Copy link
Contributor

fsih commented Jan 14, 2020

It's in! Thanks again for the quick fix @adroitwhiz !

@adroitwhiz
Copy link
Contributor Author

Sorry for breaking it in the first place!

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.

The "touching mouse" block doesn't work with vector costumes which have never appeared
3 participants