Skip to content

Commit

Permalink
Improved dirty props update by readjusting image size from new texture
Browse files Browse the repository at this point in the history
Author: wastedabuser
Refs SammyJoeOsborne#2
  • Loading branch information
Adolio committed Jan 24, 2015
1 parent 8bf5acc commit fe44946
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/com/sammyjoeosborne/spriter/Animation.as
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,11 @@ package com.sammyjoeosborne.spriter
$fileIsDirty = ($playingForward) ? $key.nextFileDirty : $key.prevFileDirty;
if ($fileIsDirty)
{
_timelineImages[$timelineID].texture = _spriterMC.textures[$key.folder][$key.file];
var tx:Texture = _spriterMC.textures[$key.folder][$key.file];
if (tx != $image.texture) {
$image.texture = tx;
$image.readjustSize();
}
}

//must reset rotation and scale so we can accurately set the pivot point
Expand Down

0 comments on commit fe44946

Please sign in to comment.