Skip to content

Commit e1072dd

Browse files
committed
GTween: fix swapValues() with repeatCount == 0 because the property can get calculated as NaN
1 parent dab887f commit e1072dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/com/gskinner/motion/GTween.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,7 @@ class GTween #if (flash || openfl) extends EventDispatcher #end
854854
{
855855
Reflect.setField(_rangeValues, n, Reflect.field(_rangeValues, n) * -1);
856856
}
857+
calculatedPosition = calculatedPositionOld = Math.NaN;
857858
if (_position < 0)
858859
{
859860
// render it at position 0:

0 commit comments

Comments
 (0)