Merging r43952 through r43994 from trunk into soc-2011-tomato
[blender.git] / source / blender / editors / space_clip / clip_draw.c
index 2533629c4fba3f8f80d70eea997dfe032853403c..afc0d84ed9a3403480cd729590c049e4f8306134 100644 (file)
@@ -1199,6 +1199,11 @@ static void draw_distortion(SpaceClip *sc, ARegion *ar, MovieClip *clip, int wid
                while(layer) {
                        bGPDframe *frame= layer->frames.first;
 
+                       if(layer->flag & GP_LAYER_HIDE) {
+                               layer= layer->next;
+                               continue;
+                       }
+
                        glColor4fv(layer->color);
                        glLineWidth(layer->thickness);
                        glPointSize((float)(layer->thickness + 2));