diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-04 15:59:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-04 15:59:09 +0400 |
commit | fc0ce537bab8731cc60fda282a6c97d4816011e5 (patch) | |
tree | b7be1daf9403266b1b4f9044eda0c23058d4be31 /source/blender/editors/animation/anim_deps.c | |
parent | 6927dcbf6f8999c89386fe56695aea7c8544d50e (diff) |
fix [#29947] Blender crashes when duplicate bones
missing NULL check.
Diffstat (limited to 'source/blender/editors/animation/anim_deps.c')
-rw-r--r-- | source/blender/editors/animation/anim_deps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/animation/anim_deps.c b/source/blender/editors/animation/anim_deps.c index fdccf5d4baa..3f851938a83 100644 --- a/source/blender/editors/animation/anim_deps.c +++ b/source/blender/editors/animation/anim_deps.c @@ -148,7 +148,7 @@ static void animchan_sync_group (bAnimContext *UNUSED(ac), bAnimListElem *ale) /* if one matches, sync the selection status */ if (pchan) { - if (pchan->bone->flag & BONE_SELECTED) + if (pchan->bone && pchan->bone->flag & BONE_SELECTED) agrp->flag |= AGRP_SELECTED; else agrp->flag &= ~AGRP_SELECTED; |