Fixed bug in label rendering with objects named as the empty string.
parent
d5d64039e4
commit
06493ad2a6
|
@ -7306,7 +7306,7 @@ void Renderer::buildRenderLists(const Star& sun,
|
|||
|
||||
labelColor = Color(labelColor, opacity * labelColor.alpha());
|
||||
|
||||
if (showLabel)
|
||||
if (showLabel && !body->getName().empty())
|
||||
{
|
||||
addSortedLabel(body->getName(true), labelColor,
|
||||
Point3f(pos.x, pos.y, pos.z));
|
||||
|
|
Loading…
Reference in New Issue