mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +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.
|
||||
|
||||
var root : Texture = texture.root;
|
||||
var rectRegion : Rectangle = atlas.getRegion(path);
|
||||
var rectRegion : Rectangle =texture.region;
|
||||
if (!rotated) {
|
||||
attachment.regionU = rectRegion.x / root.width;
|
||||
attachment.regionV = rectRegion.y / root.height;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user