Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2003-07-22 01:21:15 +0400
committerTon Roosendaal <ton@blender.org>2003-07-22 01:21:15 +0400
commitbf23ed161e7a1ce9f5362a826e288d17edbf8d6a (patch)
tree702d0c473125cff9c5f5c3dffd27e931e02f7346
parentd2fe1ea50a8087aa1d65f251085a61d1860b92ce (diff)
- bugfix #178
Well, it fixes the crash, but the cause can still be in wrong freeing memory when deleting strips... Hos; I leave in the bugreport with a note for you
-rw-r--r--source/blender/src/drawnla.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/source/blender/src/drawnla.c b/source/blender/src/drawnla.c
index b43f8c8d713..beabfaf2bb2 100644
--- a/source/blender/src/drawnla.c
+++ b/source/blender/src/drawnla.c
@@ -113,22 +113,24 @@ static void draw_nlatree(void)
glColor3ub(0x00, 0x00, 0x00);
x = 0.0;
-
+
y = count_nla_levels();
y*= (NLACHANNELHEIGHT+NLACHANNELSKIP);
+
for (base=G.scene->base.first; base; base=base->next){
if (nla_filter(base, 0)){
cpack (0xAAAAAA);
glRectf(x, y-NLACHANNELHEIGHT/2, (float)NLAWIDTH, y+NLACHANNELHEIGHT/2);
-
+
/* Draw the name / ipo timeline*/
if (TESTBASE_SAFE(base))
cpack(0xFFFFFF);
else
cpack (0x000000);
glRasterPos2f(x+16, y-4);
+
BMF_DrawString(G.font, base->object->id.name+2);
/* Draw the constraint ipos */
@@ -160,7 +162,6 @@ static void draw_nlatree(void)
cpack(0xFFFFFF);
else
cpack (0x000000);
-
glRasterPos2f(x+32, y-4);
BMF_DrawString(G.font, base->object->action->id.name+2);
}
@@ -178,11 +179,13 @@ static void draw_nlatree(void)
else
cpack (0x000000);
- glRasterPos2f(x+48, y-4);
- BMF_DrawString(G.font, strip->act->id.name+2);
-
- y-=(NLACHANNELHEIGHT+NLACHANNELSKIP);
+ // why this test? check freeing mem when deleting strips? (ton)
+ if(strip->act) {
+ glRasterPos2f(x+48, y-4);
+ BMF_DrawString(G.font, strip->act->id.name+2);
+ y-=(NLACHANNELHEIGHT+NLACHANNELSKIP);
+ }
}
}
}