diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2014-07-10 15:02:22 +0400 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2014-07-10 15:03:05 +0400 |
commit | 19f89a083f25c2d69619cfef7df5817d86292ccd (patch) | |
tree | d28e797f05a19f6bc5c15ce23e909c6ca9a319f3 /source/blender/editors/animation | |
parent | 42615d88b6ebf263ecce7535591fa9f000b1f597 (diff) |
Fix for invalid memory access in graph editor when deleting the last
vertex in a fcurve.
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r-- | source/blender/editors/animation/anim_deps.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/animation/anim_deps.c b/source/blender/editors/animation/anim_deps.c index 1ca2c247ff0..640349199be 100644 --- a/source/blender/editors/animation/anim_deps.c +++ b/source/blender/editors/animation/anim_deps.c @@ -364,12 +364,14 @@ void ANIM_animdata_update(bAnimContext *ac, ListBase *anim_data) if (ale->update & ANIM_UPDATE_ORDER) { ale->update &= ~ANIM_UPDATE_ORDER; - sort_time_fcurve(fcu); + if (fcu) + sort_time_fcurve(fcu); } if (ale->update & ANIM_UPDATE_HANDLES) { ale->update &= ~ANIM_UPDATE_HANDLES; - calchandles_fcurve(fcu); + if (fcu) + calchandles_fcurve(fcu); } if (ale->update & ANIM_UPDATE_DEPS) { |