Small fix, ancient issue:
authorTon Roosendaal <ton@blender.org>
Sun, 12 Oct 2008 11:13:35 +0000 (11:13 +0000)
committerTon Roosendaal <ton@blender.org>
Sun, 12 Oct 2008 11:13:35 +0000 (11:13 +0000)
drawing object names in 3d window, zbuffered mode, didn't show up.

source/blender/src/drawobject.c

index 722b430714bc22ba910c966cd4f86816dec1b7e8..7ff7b20b3ea953c84e653e48b3befda61f534c88 100644 (file)
@@ -5175,10 +5175,12 @@ void draw_object(Base *base, int flag)
                        /* patch for several 3d cards (IBM mostly) that crash on glSelect with text drawing */
                        /* but, we also dont draw names for sets or duplicators */
                        if(flag == 0) {
+                               if(G.vd->zbuf) glDisable(GL_DEPTH_TEST);
                                glRasterPos3f(0.0,  0.0,  0.0);
 
                                BMF_DrawString(G.font, " ");
                                BMF_DrawString(G.font, ob->id.name+2);
+                               if(G.vd->zbuf) glEnable(GL_DEPTH_TEST);
                        }
                }
                /*if(dtx & OB_DRAWIMAGE) drawDispListwire(&ob->disp);*/