From 28899799aaf57a45fcef5d6a2c7c949774555872 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Fri, 4 May 2007 07:26:57 +0000 Subject: Hopefullly this commit shall resolve the issues drawing issues I saw with the Action Editor IPO-Curve channel names on a computer with an Intel G965 Express graphics card. --- source/blender/src/drawaction.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/src/drawaction.c') diff --git a/source/blender/src/drawaction.c b/source/blender/src/drawaction.c index a36659cbd85..9ffb6c7da64 100644 --- a/source/blender/src/drawaction.c +++ b/source/blender/src/drawaction.c @@ -439,6 +439,8 @@ static void draw_action_channel_names(bAction *act) /* Draw IPO-curve-channels? */ if (FILTER_IPO_ACHAN(achan)) { for (icu=achan->ipo->curve.first; icu; icu=icu->next) { + char *icu_name= getname_ipocurve(icu); + /* draw backing strip behind ipo-curve channel*/ BIF_ThemeColorShade(TH_HEADER, -40); glRectf(x+14, y-CHANNELHEIGHT/2, (float)NAMEWIDTH, y+CHANNELHEIGHT/2); @@ -449,7 +451,7 @@ static void draw_action_channel_names(bAction *act) else BIF_ThemeColor(TH_TEXT); glRasterPos2f(x+24, y-4); - BMF_DrawString(G.font, getname_ipocurve(icu)); + BMF_DrawString(G.font, icu_name); #if 0 /* tempolarily disabled until all ipo-code can support this option */ /* draw 'lock' to indicate if ipo-curve channel is protected */ -- cgit v1.2.3