Skip to content

Commit

Permalink
--amend
Browse files Browse the repository at this point in the history
  • Loading branch information
cx384 committed Jan 16, 2025
1 parent ba34a0b commit d5b2a0e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/client/content_cao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1372,6 +1372,7 @@ void GenericCAO::updateTextures(std::string mod)
});
}
} else if (m_prop.visual == "upright_sprite") {
scene::IMesh *mesh = m_meshnode->getMesh();
{
std::string tname = "no_texture.png";
if (!m_prop.textures.empty())
Expand Down Expand Up @@ -1402,6 +1403,9 @@ void GenericCAO::updateTextures(std::string mod)
use_anisotropic_filter);
});
}
// Set mesh color (only if lighting is disabled)
if (m_prop.glow < 0)
setMeshColor(mesh, {255, 255, 255, 255});
}
}
// Prevent showing the player after changing texture
Expand Down

0 comments on commit d5b2a0e

Please sign in to comment.