Update Animation3D.java

Minor change to avoid a flashing effect when using Animation3D.REVERSE + Animation3D.INFINITE