Open vicksonzero opened 6 years ago
Edit: i also removed var scale = Math.max(scale2.x, scale2.y); and used scale2.x and scale2.y as-is why are the scale normalized like this?
Also found that
this.mvp.ortho2d(x * res, y, width * res, height * res);
doesn't have y * res
written. is it also intentional?
I am using:
I made a strawberry sprite that sits in the center of the spine scene, It uses deform animations and then I load and create it in-game (at 0, 0) I expect it to appear in the top-left corner, with only the lower-right corner visible.
but actually, the strawberry appear much lower, and the whole right-side is visible in the game.
I then made the following changes to the source and it correctly aligns to the origin again:![screenshot 488 cropped](https://user-images.githubusercontent.com/6271771/34600459-9cb1b73c-f232-11e7-8aaa-d975d97181b6.png)
may I know what the purpose is for the deleted piece of code?
Edit: i also removed
var scale = Math.max(scale2.x, scale2.y);
and usedscale2.x
andscale2.y
as-is why are the scale normalized like this?Are the lines intended, or did I break something by fixing it?