- fix for drawing lamp name in 3d window at correct location.

This commit is contained in:
Ton Roosendaal 2004-01-17 13:15:19 +00:00
parent 9d15dc5e8d
commit 247d40d11e

@ -3667,8 +3667,7 @@ void draw_object(Base *base)
if(dtx & OB_BOUNDBOX) draw_bounding_volume(ob); if(dtx & OB_BOUNDBOX) draw_bounding_volume(ob);
if(dtx & OB_TEXSPACE) drawtexspace(ob); if(dtx & OB_TEXSPACE) drawtexspace(ob);
if(dtx & OB_DRAWNAME) { if(dtx & OB_DRAWNAME) {
if(ob->type==OB_LAMP) glRasterPos3fv(ob->obmat[3]); glRasterPos3f(0.0, 0.0, 0.0);
else glRasterPos3f(0.0, 0.0, 0.0);
BMF_DrawString(G.font, " "); BMF_DrawString(G.font, " ");
BMF_DrawString(G.font, ob->id.name+2); BMF_DrawString(G.font, ob->id.name+2);