Properly read the mesh from LUA.
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 23 Oct 2012 17:03:06 +0000 (20:03 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 25 Nov 2012 16:14:14 +0000 (18:14 +0200)
commit0a020dbcc848ae2debec664846e08bd097d70320
tree5c43fc7d023d002dc5fb637eea55022265bde0c8
parentac97a7f70eefd4b8065e006c634a0a5baf236b62
Properly read the mesh from LUA.

Players can now be set to meshes using the following test script:

function switch_player_visual()
prop = {
mesh="player.obj",
texture="player.png",
visual="mesh",
}
for _, obj in pairs(minetest.get_connected_players()) do
obj:set_properties(prop)
end
minetest.after(1.0, switch_player_visual)
end
minetest.after(1.0, switch_player_visual)
src/content_cao.cpp
src/content_sao.cpp
src/object_properties.cpp
src/scriptapi.cpp