a touch neater and some comments.
authorCampbell Barton <ideasman42@gmail.com>
Wed, 25 Jan 2006 06:28:47 +0000 (06:28 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 25 Jan 2006 06:28:47 +0000 (06:28 +0000)
source/blender/src/drawseq.c

index 8a6e80d5f012436af09170f10e3673b8cb842ef7..f1eac0cc1aad0b4774489fe47dec133a6e2b1c20 100644 (file)
@@ -822,13 +822,14 @@ void drawseqspace(ScrArea *sa, void *spacedata)
 
        if(ed) {
                seq= ed->seqbasep->first;
-               while(seq) {
+               while(seq) { /* bound box test, dont draw outside the view */
                        if (seq->flag & SELECT ||
                                        seq->start > G.v2d->cur.xmax ||
                                        seq->start+seq->len < G.v2d->cur.xmin ||
-                                       seq->machine+1.0 < G.v2d->cur.ymin || seq->machine > G.v2d->cur.ymax)
+                                       seq->machine+1.0 < G.v2d->cur.ymin ||
+                                       seq->machine > G.v2d->cur.ymax)
                        {
-                               /* do nothing */
+                               /* dont draw */
                        } else {
                                drawseq(seq);
                        }
@@ -838,14 +839,14 @@ void drawseqspace(ScrArea *sa, void *spacedata)
        ed= G.scene->ed;
        if(ed) {
                seq= ed->seqbasep->first;
-               while(seq) {
+               while(seq) { /* bound box test, dont draw outside the view */
                        if (!(seq->flag & SELECT) ||
                                        seq->start > G.v2d->cur.xmax ||
                                        seq->start+seq->len < G.v2d->cur.xmin ||
                                        seq->machine+1.0 < G.v2d->cur.ymin ||
                                        seq->machine > G.v2d->cur.ymax)
                        {
-                               /* do nothing */
+                               /* dont draw */
                        } else {
                                drawseq(seq);
                        }