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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-07-26 17:40:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-07-26 17:40:48 +0400
commit0df907c4e2cd715d6454d5356952ab6cf7aaa54a (patch)
tree07a69c354bcfd75de2c5ec62f46c3301d5ded9ba /source
parent733edf86284d83dd0a70da59228b0c0d39c8cbfa (diff)
fix for crash when checking for locked action.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/animation/keyframes_draw.c2
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);