Skip to content

Commit

Permalink
fixed zero frame is not rendered (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhirkevich committed Jul 23, 2024
1 parent 1199cb2 commit 9888ea9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ internal abstract class BaseLayer : Layer {
}

override fun isActive(state: AnimationState): Boolean {
return !isHidden(state)
&& state.frame in (inPoint ?: Float.MIN_VALUE)..(outPoint ?: Float.MAX_VALUE)
return !isHidden(state) && state.frame in (inPoint ?: 0f)..(outPoint ?: Float.MAX_VALUE)
}


Expand Down

0 comments on commit 9888ea9

Please sign in to comment.