mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[ts][canvas] Fix flipping in canvas example.
This commit is contained in:
parent
91532f19b1
commit
0371344bc7
@ -71,7 +71,7 @@ function loadSkeleton (name, initialAnimation, skin) {
|
|||||||
// Set the scale to apply during parsing, parse the file, and create a new skeleton.
|
// Set the scale to apply during parsing, parse the file, and create a new skeleton.
|
||||||
var skeletonData = skeletonJson.readSkeletonData(assetManager.get("assets/" + name + ".json"));
|
var skeletonData = skeletonJson.readSkeletonData(assetManager.get("assets/" + name + ".json"));
|
||||||
var skeleton = new spine.Skeleton(skeletonData);
|
var skeleton = new spine.Skeleton(skeletonData);
|
||||||
skeleton.flipY = true;
|
skeleton.scaleY = -1;
|
||||||
var bounds = calculateBounds(skeleton);
|
var bounds = calculateBounds(skeleton);
|
||||||
skeleton.setSkinByName(skin);
|
skeleton.setSkinByName(skin);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user