Skip to content

Revert "Revert "Put Skin Alter Push Back In"" #509

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

Conversation

kchadha
Copy link
Contributor

@kchadha kchadha commented Sep 26, 2019

Reverts #508

Changes from #470 were taken out again because of a bug where making costume edits in the paint editor makes the costume change size on the stage:

skin-alter-push-2

skin-alter-push

cc/ @mzgoddard, @cwillisf

@mzgoddard
Copy link
Contributor

Ah. So each draw calls updateBitmapSkin or updateSVGSkin. When the call is on a skin of the other type it'll create a new skin of the right type, but I overlooked binding the event listener here. So the first draw in the new type, will update the drawable matrix because the drawable's skin changes, reseting the matrix. When the second draw happens, the drawable draws the right skin, but the matrix isn't updated as it doesn't get a message from the skin changing, making it draw in the small first matrix.

@towerofnix
Copy link
Contributor

So, um.

Revert "Revert "Revert "Revert "Revert "Revert "Skin alter push"""""". 📦

I'll stop now [:

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.

6 participants