Callback called too early in gui.animate()

Hi!

I am basically having the same issue as DEF-1972. Maybe it’s a regression?

gui.animate(node, "scale", vmath.vector3(0.0), gui.EASING_LINEAR, 0.1, 0.0, function ()
  print(gui.get_scale(node)) -- vmath.vector3(0.16666668653488, 0.16666668653488, 0.16666668653488)
end)

This creeped on me in a particularly nasty way because I was doing gui.set_enabled(node, false) in the completion callback and then cancelling animations when eventually re-enabling the node, which left it in the same “almost completely animated but not quite” state it was when I disabled it in the callback.