diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-26 17:40:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-26 17:40:48 +0400 |
commit | 0df907c4e2cd715d6454d5356952ab6cf7aaa54a (patch) | |
tree | 07a69c354bcfd75de2c5ec62f46c3301d5ded9ba /source/blender/editors/animation/keyframes_draw.c | |
parent | 733edf86284d83dd0a70da59228b0c0d39c8cbfa (diff) |
fix for crash when checking for locked action.
Diffstat (limited to 'source/blender/editors/animation/keyframes_draw.c')
-rw-r--r-- | source/blender/editors/animation/keyframes_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/animation/keyframes_draw.c b/source/blender/editors/animation/keyframes_draw.c index 85731933168..d024e2b0393 100644 --- a/source/blender/editors/animation/keyframes_draw.c +++ b/source/blender/editors/animation/keyframes_draw.c @@ -796,7 +796,7 @@ void draw_action_channel(View2D *v2d, AnimData *adt, bAction *act, float ypos) { DLRBT_Tree keys, blocks; - short locked = (act->id.lib != 0); + short locked = (act && act->id.lib != 0); BLI_dlrbTree_init(&keys); BLI_dlrbTree_init(&blocks); |