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>2012-05-04 22:00:37 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-05-04 22:00:37 +0400
commit54d2689a50f506dbd38d3b53a2fa00bb3f13c23c (patch)
tree0eb8452a01655f38f25acb0a96c533e5917991d0
parente96187250e6b570432ddb88b761171c2afc88c44 (diff)
Clip editor: fixed crash when opening dopesheet view without having clip opened
-rw-r--r--source/blender/editors/space_clip/space_clip.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/space_clip/space_clip.c b/source/blender/editors/space_clip/space_clip.c
index 32a4a7d1f83..1c0d2db91a9 100644
--- a/source/blender/editors/space_clip/space_clip.c
+++ b/source/blender/editors/space_clip/space_clip.c
@@ -1135,7 +1135,8 @@ static void dopesheet_area_draw(const bContext *C, ARegion *ar)
View2DScrollers *scrollers;
short unit = 0;
- BKE_tracking_dopesheet_update(&clip->tracking, sc->dope_sort, sc->dope_flag & SC_DOPE_SORT_INVERSE);
+ if (clip)
+ BKE_tracking_dopesheet_update(&clip->tracking, sc->dope_sort, sc->dope_flag & SC_DOPE_SORT_INVERSE);
/* clear and setup matrix */
UI_ThemeClearColor(TH_BACK);
@@ -1194,7 +1195,8 @@ static void clip_channels_area_draw(const bContext *C, ARegion *ar)
View2D *v2d = &ar->v2d;
View2DScrollers *scrollers;
- BKE_tracking_dopesheet_update(&clip->tracking, sc->dope_sort, sc->dope_flag & SC_DOPE_SORT_INVERSE);
+ if (clip)
+ BKE_tracking_dopesheet_update(&clip->tracking, sc->dope_sort, sc->dope_flag & SC_DOPE_SORT_INVERSE);
/* clear and setup matrix */
UI_ThemeClearColor(TH_BACK);