Fixed bug in label rendering with objects named as the empty string.

ver1_5_1
Vincent Giangiulio 2007-11-21 18:52:33 +00:00
parent d5d64039e4
commit 06493ad2a6
1 changed files with 1 additions and 1 deletions

View File

@ -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));