diff options
author | stujones11 <stujones111@gmail.com> | 2018-03-18 17:25:05 +0000 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-03-29 14:53:12 +0100 |
commit | 821e3f7072b040f57e33785536a4f00a064a0069 (patch) | |
tree | edd4b0e626e2f7b1369547c452fc2b65514c5d0c /src/script | |
parent | 0396717256bb15ecb76469b7f148cfd6d952b34e (diff) | |
download | minetest-821e3f7072b040f57e33785536a4f00a064a0069.tar.gz minetest-821e3f7072b040f57e33785536a4f00a064a0069.tar.bz2 minetest-821e3f7072b040f57e33785536a4f00a064a0069.zip |
Optional alpha channel support for entities
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/common/c_content.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp index 5229572f1..889b94660 100644 --- a/src/script/common/c_content.cpp +++ b/src/script/common/c_content.cpp @@ -304,6 +304,7 @@ void read_object_properties(lua_State *L, int index, lua_pop(L, 1); getfloatfield(L, -1, "zoom_fov", prop->zoom_fov); + getboolfield(L, -1, "use_texture_alpha", prop->use_texture_alpha); } /******************************************************************************/ @@ -386,6 +387,8 @@ void push_object_properties(lua_State *L, ObjectProperties *prop) lua_setfield(L, -2, "wield_item"); lua_pushnumber(L, prop->zoom_fov); lua_setfield(L, -2, "zoom_fov"); + lua_pushboolean(L, prop->use_texture_alpha); + lua_setfield(L, -2, "use_texture_alpha"); } /******************************************************************************/ |