From 4bd2609cd0297fcfe5d8f7b47c64f02c4275a4d7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 9 Jun 2014 20:03:28 +1000 Subject: Quiet assert in debug mode, deleting mask/gpencil keys --- source/blender/editors/animation/anim_deps.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (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 5bffdfbcc4b..1ca2c247ff0 100644 --- a/source/blender/editors/animation/anim_deps.c +++ b/source/blender/editors/animation/anim_deps.c @@ -349,8 +349,15 @@ void ANIM_animdata_update(bAnimContext *ac, ListBase *anim_data) { bAnimListElem *ale; - if (ELEM(ac->datatype, ANIMCONT_GPENCIL, ANIMCONT_MASK)) + if (ELEM(ac->datatype, ANIMCONT_GPENCIL, ANIMCONT_MASK)) { +#ifdef DEBUG + /* quiet assert */ + for (ale = anim_data->first; ale; ale = ale->next) { + ale->update = 0; + } +#endif return; + } for (ale = anim_data->first; ale; ale = ale->next) { FCurve *fcu = ale->key_data; -- cgit v1.2.3