Movie Clip Editor: manual calibration will now respect GP layer's hidden flag
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 8 Feb 2012 09:40:34 +0000 (09:40 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 8 Feb 2012 09:40:34 +0000 (09:40 +0000)
source/blender/editors/space_clip/clip_draw.c

index de43b30..49fa783 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));