Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit da34046

Browse files
committed
Ability to modify Sprite ticks per frame on runtime
1 parent 25cf0b7 commit da34046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/native/components/sprite.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default class Sprite extends Component {
5454
}
5555

5656
componentWillReceiveProps(nextProps) {
57-
if (nextProps.state !== this.props.state) {
57+
if (nextProps.state !== this.props.state || nextProps.ticksPerFrame !== this.props.ticksPerFrame) {
5858
this.finished = false;
5959
this.props.onPlayStateChanged(1);
6060
this.context.loop.unsubscribe(this.loopID);

0 commit comments

Comments
 (0)