mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-01 21:29:07 +08:00
Removed atlas usage in newMeshAttachment() method (#963)
This commit is contained in:
parent
720b9c316b
commit
cc2d616dbc
@ -102,7 +102,7 @@ package spine.starling {
|
|||||||
attachment.rendererObject = new Image(Texture.fromTexture(texture)); // Discard frame.
|
attachment.rendererObject = new Image(Texture.fromTexture(texture)); // Discard frame.
|
||||||
|
|
||||||
var root : Texture = texture.root;
|
var root : Texture = texture.root;
|
||||||
var rectRegion : Rectangle = atlas.getRegion(path);
|
var rectRegion : Rectangle =texture.region;
|
||||||
if (!rotated) {
|
if (!rotated) {
|
||||||
attachment.regionU = rectRegion.x / root.width;
|
attachment.regionU = rectRegion.x / root.width;
|
||||||
attachment.regionV = rectRegion.y / root.height;
|
attachment.regionV = rectRegion.y / root.height;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user