Movie Clip Editor: manual calibration will now respect GP layer's hidden flag
[blender.git] / source / blender / editors / space_clip / clip_draw.c
index de43b30d4f416a537237ce6f63597716c0aea239..49fa7837de654c36a15b9fba721522382918d3e0 100644 (file)
@@ -1178,6 +1178,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));