From 001de6ffbac83bcd41ecda075d79d265a69c7d42 Mon Sep 17 00:00:00 2001 From: Dániel Juhász Date: Thu, 1 Jun 2017 23:18:55 +0200 Subject: Do not shade inventory items with textures (#5869) This commit restores the old behavior: if an inventory item has an own inventory texture, it will not be shaded. --- src/hud.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/hud.cpp') diff --git a/src/hud.cpp b/src/hud.cpp index 72145b4da..a2f031b4c 100644 --- a/src/hud.cpp +++ b/src/hud.cpp @@ -698,7 +698,10 @@ void drawItemStack(video::IVideoDriver *driver, if (p->override_base) c = p->color; } - colorizeMeshBuffer(buf, &c); + if (imesh->needs_shading) + colorizeMeshBuffer(buf, &c); + else + setMeshBufferColor(buf, c); video::SMaterial &material = buf->getMaterial(); material.MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL_REF; material.Lighting = false; -- cgit v1.2.3