Skip to content

Commit 1346788

Browse files
committed
Fix render bug: sprite pure animation (glide ,move..) set isCostumeDirty to false
1 parent 0afa3e2 commit 1346788

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sprite.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,10 +863,10 @@ func doAnimation(p *SpriteImpl, info *animState) {
863863
if info.IsCanceled {
864864
return
865865
}
866-
p.isCostumeDirty = false
867866
if !p.hasAnim(animName) {
868867
return
869868
}
869+
p.isCostumeDirty = false
870870
p.syncSprite.PlayAnim(animName, info.Speed, info.IsLoop, false)
871871
})
872872
if info.OnStart != nil && info.OnStart.Play != "" {

0 commit comments

Comments
 (0)