Skip to content

Commit

Permalink
fix starling pivot bug
Browse files Browse the repository at this point in the history
  • Loading branch information
akdcl committed Mar 18, 2015
1 parent 2e7174d commit c37b512
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/dragonBones/factorys/StarlingFactory.as
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,6 @@
var subTexture:SubTexture = (textureAtlas as TextureAtlas).getTexture(fullName) as SubTexture;
if (subTexture)
{
var subTextureFrame:Rectangle = (textureAtlas as TextureAtlas).getFrame(fullName);
if(subTextureFrame)
{
pivotX += subTextureFrame.x;
pivotY += subTextureFrame.y;
}

var image:Image = new Image(subTexture);
image.pivotX = pivotX;
image.pivotY = pivotY;
Expand Down

0 comments on commit c37b512

Please sign in to comment.