Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-06-09 14:03:28 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-06-09 15:06:44 +0400
commit4bd2609cd0297fcfe5d8f7b47c64f02c4275a4d7 (patch)
tree33a7a219aab1a8fcfc7b6774d1e0cdfdac64a4f3
parent5b367c9aaf4fe61f3d1849ec2f74b5b01f770fc9 (diff)
Quiet assert in debug mode, deleting mask/gpencil keys
-rw-r--r--source/blender/editors/animation/anim_deps.c9
1 files changed, 8 insertions, 1 deletions
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;