Grease Pencil Bugfixes:

* Segfaults with eraser should now be fixed 
* Attempted fixed for sequencer redraw problems with buttons
This commit is contained in:
Joshua Leung
2008-07-30 09:20:05 +00:00
parent 7b819bc631
commit f3a4f3adaf
2 changed files with 7 additions and 3 deletions

View File

@@ -1163,14 +1163,15 @@ static void gp_stroke_doeraser (tGPsdata *p)
{
bGPdata *gpd= p->gpd;
bGPDframe *gpf= p->gpf;
bGPDstroke *gps;
bGPDstroke *gps, *gpn;
short (*mcoords)[2];
/* get buffer-stroke coordinates as shorts array */
mcoords= gp_stroke_eraser_2mco(gpd);
/* loop over strokes, checking segments for intersections */
for (gps= gpf->strokes.first; gps; gps= gps->next) {
for (gps= gpf->strokes.first; gps; gps= gpn) {
gpn= gps->next;
gp_stroke_eraser_dostroke(p, mcoords, gpd->sbuffer_size, gpf, gps);
}

View File

@@ -5119,7 +5119,10 @@ static void winqreadseqspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
}
}
if(doredraw) scrarea_queue_winredraw(curarea);
if(doredraw) {
scrarea_queue_winredraw(curarea);
scrarea_queue_headredraw(curarea);
}
}