Update Animation3D.java

Hi :)

Here is a minor fix to avoid a flashing effect at the end of the loop when using Animation3D.REVERSE + Animation3D.INFINITE