Removed atlas usage in newMeshAttachment() method (#963)

This commit is contained in:
aram-ahak 2017-08-10 14:14:16 +04:00 committed by Mario Zechner
parent 720b9c316b
commit cc2d616dbc

View File

@ -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;