Skip to content

Commit 281bb6a

Browse files
committed
fix error when interpolation is null
1 parent 9c2346c commit 281bb6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

blade-engine/src/com/bladecoder/engine/anim/SpritePosTween.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public SpritePosTween() {
3838
}
3939

4040
public void start(SpriteActor target, Tween.Type repeatType, int count, float tx, float ty, float duration, InterpolationMode interpolation, ActionCallback cb) {
41-
start(target, repeatType, count, tx, ty, duration, interpolation.getInterpolation(), interpolation.getInterpolation(), cb);
41+
Interpolation i = interpolation == null? null: interpolation.getInterpolation();
42+
start(target, repeatType, count, tx, ty, duration, i, i, cb);
4243
}
4344

4445
public void start(SpriteActor target, Tween.Type repeatType, int count, float tx, float ty, float duration,

0 commit comments

Comments
 (0)