Commit: ef2c05c77e365a07f8ced62e37c9430114b990d8
Author: Sergey Sharybin
Date:   Wed Feb 26 19:42:59 2014 +0600
https://developer.blender.org/rBef2c05c77e365a07f8ced62e37c9430114b990d8

Fix crash happening when drawing GP for a track which doesn't have visible 
marker

===================================================================

M       source/blender/editors/space_clip/clip_draw.c

===================================================================

diff --git a/source/blender/editors/space_clip/clip_draw.c 
b/source/blender/editors/space_clip/clip_draw.c
index 407ca26..8c015a7 100644
--- a/source/blender/editors/space_clip/clip_draw.c
+++ b/source/blender/editors/space_clip/clip_draw.c
@@ -1637,10 +1637,12 @@ static void draw_distortion(SpaceClip *sc, ARegion *ar, 
MovieClip *clip,
                        int framenr = ED_space_clip_get_clip_frame_number(sc);
                        MovieTrackingMarker *marker = 
BKE_tracking_marker_get_exact(track, framenr);
 
-                       offsx = marker->pos[0];
-                       offsy = marker->pos[1];
+                       if (marker) {
+                               offsx = marker->pos[0];
+                               offsy = marker->pos[1];
 
-                       gpd = track->gpd;
+                               gpd = track->gpd;
+                       }
                }
 
        }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to