Fixes a small delay when switching from one animation to another.
Merge pull request #2 from PolCPP/master

Minor delay issue when switching from an animation to another