From 3419ffdf498cd5ba27433bd64d9da3939a4b13d2 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Tue, 9 Feb 2016 02:18:05 +1300 Subject: Fix: ANIM_animdata_update() was not handling post-edit updates on GP channels This may have resulted in situations where the order of GP keyframes was incorrect (leading to some frames not being able to be found), or in some redraw problems when trying to delete GP keyframes (that I was getting earlier, but can't seem to reproduce now) TODO: We now need to hook up a proper api to do the GP key sorting --- source/blender/editors/space_action/action_edit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/space_action') diff --git a/source/blender/editors/space_action/action_edit.c b/source/blender/editors/space_action/action_edit.c index 35b33450116..e595d5d3fa5 100644 --- a/source/blender/editors/space_action/action_edit.c +++ b/source/blender/editors/space_action/action_edit.c @@ -902,16 +902,16 @@ static bool delete_action_keys(bAnimContext *ac) ale->key_data = NULL; } } - + if (changed) { ale->update |= ANIM_UPDATE_DEFAULT; changed_final = true; } } - + ANIM_animdata_update(ac, &anim_data); ANIM_animdata_freelist(&anim_data); - + return changed_final; } -- cgit v1.2.3