From 19f89a083f25c2d69619cfef7df5817d86292ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20T=C3=B6nne?= Date: Thu, 10 Jul 2014 13:02:22 +0200 Subject: Fix for invalid memory access in graph editor when deleting the last vertex in a fcurve. --- source/blender/editors/animation/anim_deps.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/animation') 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) { -- cgit v1.2.3