Fix multiple texture update support for animated meshnodes.

This will allow 3d entity models with multiple UV textures and materials to be updated through Lua.
Currently only the first material texture gets updated which was clearly not the author's intention.

Test mod and model available for download.
Forum topic: http://forum.minetest.net/viewtopic.php?pid=91372