Skip to content

Commit b600bc3

Browse files
committedOct 15, 2015
Fix enforcing of nametag hiding
Commit d2ca662 "Enforce hiding nametag" didn't fix the issue for "client" instances, where the nametag update was received before the object was added to the scene. This resulted in the grey shadow on the nametag that commit tried to fix. Thanks to @neoascetic for pointing out that there still is a shadow.
1 parent 5d88501 commit b600bc3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

Diff for: ‎src/content_cao.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -975,6 +975,11 @@ void GenericCAO::addToScene(scene::ISceneManager *smgr, ITextureSource *tsrc,
975975
wname.c_str(), m_nametag_color, node);
976976
m_textnode->grab();
977977
m_textnode->setPosition(v3f(0, BS*1.1, 0));
978+
979+
// Enforce hiding nametag,
980+
// because if freetype is enabled, a grey
981+
// shadow can remain.
982+
m_textnode->setVisible(m_nametag_color.getAlpha() > 0);
978983
}
979984

980985
updateNodePos();

0 commit comments

Comments
 (0)