Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-02-26 17:42:59 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-02-26 17:42:59 +0400
commitef2c05c77e365a07f8ced62e37c9430114b990d8 (patch)
treecc55bd549ab517ecde4246c7fd0260505e875f38 /source/blender/editors/space_clip/clip_draw.c
parent3b44ca08a99a3dfc7e6ce0a8947cb8415f34f29c (diff)
Fix crash happening when drawing GP for a track which doesn't have visible marker
Diffstat (limited to 'source/blender/editors/space_clip/clip_draw.c')
-rw-r--r--source/blender/editors/space_clip/clip_draw.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/editors/space_clip/clip_draw.c b/source/blender/editors/space_clip/clip_draw.c
index 407ca269ecd..8c015a71d30 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;
+ }
}
}