ListBase API: add utility api funcs for clearing and checking empty

This commit is contained in:
2014-02-08 06:07:10 +11:00
parent 1c24d954f4
commit b3afbcab8f
146 changed files with 389 additions and 380 deletions

View File

@@ -4490,7 +4490,7 @@ void BKE_copy_constraints(ListBase *dst, const ListBase *src, int do_extern)
{
bConstraint *con, *srccon;
dst->first = dst->last = NULL;
BLI_listbase_clear(dst);
BLI_duplicatelist(dst, src);
for (con = dst->first, srccon = src->first; con && srccon; srccon = srccon->next, con = con->next) {