diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-07 23:07:10 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-07 23:24:05 +0400 |
commit | b3afbcab8ff2330c1473647be330a3ffe9b11885 (patch) | |
tree | e86b9c7d9676e63b8da92da79889dee13b8be186 /source/blender/blenkernel/intern/group.c | |
parent | 1c24d954f4ac63f22b703756b6664a4ad1b363d4 (diff) |
ListBase API: add utility api funcs for clearing and checking empty
Diffstat (limited to 'source/blender/blenkernel/intern/group.c')
-rw-r--r-- | source/blender/blenkernel/intern/group.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/group.c b/source/blender/blenkernel/intern/group.c index 82b6c0c04d5..2a61b2e7453 100644 --- a/source/blender/blenkernel/intern/group.c +++ b/source/blender/blenkernel/intern/group.c @@ -306,7 +306,7 @@ static void group_replaces_nla(Object *parent, Object *target, char mode) if (done == 0) { /* clear nla & action from object */ nlastrips = target->nlastrips; - target->nlastrips.first = target->nlastrips.last = NULL; + BLI_listbase_clear(&target->nlastrips); action = target->action; target->action = NULL; target->nlaflag |= OB_NLA_OVERRIDE; @@ -323,7 +323,7 @@ static void group_replaces_nla(Object *parent, Object *target, char mode) target->nlastrips = nlastrips; target->action = action; - nlastrips.first = nlastrips.last = NULL; /* not needed, but yah... :) */ + BLI_listbase_clear(&nlastrips); /* not needed, but yah... :) */ action = NULL; done = FALSE; } |