From 8756b7a735084c6a80f5ab031fa1d889528d6fde Mon Sep 17 00:00:00 2001 From: Dmitry Kostenko Date: Sun, 15 May 2022 21:44:55 +0200 Subject: Initialize wield mesh color when wield_image is set #12245 --- src/client/wieldmesh.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/client/wieldmesh.cpp b/src/client/wieldmesh.cpp index d5c191935..25b343573 100644 --- a/src/client/wieldmesh.cpp +++ b/src/client/wieldmesh.cpp @@ -386,6 +386,9 @@ void WieldMeshSceneNode::setItem(const ItemStack &item, Client *client, bool che m_colors.emplace_back(); // overlay is white, if present m_colors.emplace_back(true, video::SColor(0xFFFFFFFF)); + // initialize the color + if (!m_lighting) + setColor(video::SColor(0xFFFFFFFF)); return; } -- cgit v1.2.3