This pull request allows a callback to be scheduled at the end of an animation. I tested it with a gani, but since it's implemented in m.time.js, it should also work for jta files.
It also fixes some textual errors and adds a newline at the end of the file (because vim does that by default and I think you probably don't care about it).
To use it, the animation should be started like this:
node.play('animation-name', function () { alert('done!'); });
This pull request allows a callback to be scheduled at the end of an animation. I tested it with a gani, but since it's implemented in m.time.js, it should also work for jta files.
It also fixes some textual errors and adds a newline at the end of the file (because vim does that by default and I think you probably don't care about it).
To use it, the animation should be started like this:
node.play('animation-name', function () { alert('done!'); });