ListBase API: add utility api funcs for clearing and checking empty
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user