2.5 - Fixing some drawing problems I noticed in ZanQdo's file...
[blender.git] / source / blender / editors / space_graph / graph_draw.c
index c2d8d7b13455d21fa2ecf16daf61cfe5c238ffa8..f3aa0fac42bdaf328522e4775b2e178f7c3b8f38 100644 (file)
@@ -926,6 +926,10 @@ void graph_draw_channel_names(bContext *C, bAnimContext *ac, SpaceIpo *sipo, ARe
                
                y= (float)ACHANNEL_FIRST;
                
+               /* set blending again, as may not be set in previous step */
+               glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+               glEnable(GL_BLEND);
+               
                for (ale= anim_data.first, i=0; ale; ale= ale->next, i++) {
                        const float yminc= (float)(y - ACHANNEL_HEIGHT_HALF);
                        const float ymaxc= (float)(y + ACHANNEL_HEIGHT_HALF);
@@ -944,6 +948,8 @@ void graph_draw_channel_names(bContext *C, bAnimContext *ac, SpaceIpo *sipo, ARe
                
                uiEndBlock(C, block);
                uiDrawBlock(C, block);
+               
+               glDisable(GL_BLEND);
        }
        
        /* free tempolary channels */