Skip to content

Commit

Permalink
Initialize wield mesh color when wield_image is set
Browse files Browse the repository at this point in the history
  • Loading branch information
x2048 committed May 15, 2022
1 parent ec9f157 commit 8756b7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/wieldmesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8756b7a

Please sign in to comment.