Update Animation3D.java

Minor change to avoid a flashing effect when using Animation3D.REVERSE + Animation3D.INFINITE
Merge pull request #525 from Cedroux/patch-1

Update Animation3D.java