diff options
author | Sapier <sapier AT gmx dot net> | 2015-12-19 04:43:59 +0100 |
---|---|---|
committer | Sapier <sapier AT gmx dot net> | 2015-12-29 16:27:06 +0100 |
commit | 91bafceee6606fab79db1bde4cba01b84fed65c7 (patch) | |
tree | b09068be483bdac711954a112ddb4226d6504742 /src/script/common | |
parent | f14e7bac54af65e3d3d99f89f23f114b17058e49 (diff) | |
download | minetest-91bafceee6606fab79db1bde4cba01b84fed65c7.tar.gz minetest-91bafceee6606fab79db1bde4cba01b84fed65c7.tar.bz2 minetest-91bafceee6606fab79db1bde4cba01b84fed65c7.zip |
Add support for using arbitrary meshes as items
Diffstat (limited to 'src/script/common')
-rw-r--r-- | src/script/common/c_content.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp index 36a5c2ddd..78f3c943f 100644 --- a/src/script/common/c_content.cpp +++ b/src/script/common/c_content.cpp @@ -58,6 +58,8 @@ ItemDefinition read_item_definition(lua_State* L,int index, getstringfield(L, index, "description", def.description); getstringfield(L, index, "inventory_image", def.inventory_image); getstringfield(L, index, "wield_image", def.wield_image); + getstringfield(L, index, "mesh", def.meshname); + getstringfield(L, index, "meshtexture", def.meshtexture); lua_getfield(L, index, "wield_scale"); if(lua_istable(L, -1)){ |