[Bf-blender-cvs] [d0055155e86] master: Fix T54319: Crash after double-clicking baked F-curve
Sergey Sharybin
noreply at git.blender.org
Wed Mar 14 16:02:49 CET 2018
Commit: d0055155e86c75c7e3f6e15fc045f7a2d85f85ae
Author: Sergey Sharybin
Date: Wed Mar 14 15:57:14 2018 +0100
Branches: master
https://developer.blender.org/rBd0055155e86c75c7e3f6e15fc045f7a2d85f85ae
Fix T54319: Crash after double-clicking baked F-curve
===================================================================
M source/blender/editors/animation/anim_channels_edit.c
===================================================================
diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c
index 4d68053fbc8..e9ab949dc95 100644
--- a/source/blender/editors/animation/anim_channels_edit.c
+++ b/source/blender/editors/animation/anim_channels_edit.c
@@ -3085,7 +3085,7 @@ static bool select_anim_channel_keys(bAnimContext *ac, int channel_index, bool e
for (ale = anim_data.first; ale; ale = ale->next) {
FCurve *fcu_inner = (FCurve *)ale->key_data;
- if (fcu_inner) {
+ if (fcu_inner != NULL && fcu_inner->bezt != NULL) {
for (i = 0, bezt = fcu_inner->bezt; i < fcu_inner->totvert; i++, bezt++) {
bezt->f2 = bezt->f1 = bezt->f3 = 0;
}
More information about the Bf-blender-cvs
mailing list