1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Add object visual type 'item' (#7870)

This commit is contained in:
Alex 2018-12-10 18:57:04 -08:00 committed by Paramat
parent 98fa8a154d
commit a833bee9ed
4 changed files with 10 additions and 7 deletions

View file

@ -80,7 +80,8 @@ public:
void setCube(const ContentFeatures &f, v3f wield_scale);
void setExtruded(const std::string &imagename, const std::string &overlay_image,
v3f wield_scale, ITextureSource *tsrc, u8 num_frames);
void setItem(const ItemStack &item, Client *client);
void setItem(const ItemStack &item, Client *client,
bool check_wield_image = true);
// Sets the vertex color of the wield mesh.
// Must only be used if the constructor was called with lighting = false