mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Optional alpha channel support for entities
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
|
Reference in New Issue
Block a user