diff options
author | Joshua Leung <aligorith@gmail.com> | 2011-01-20 02:05:02 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2011-01-20 02:05:02 +0300 |
commit | 6cadef1fb12061ae40a5c2662d121305bc51fa8f (patch) | |
tree | c2523cf4c114fa57695cec651555ec7ae9b9c06d /source/blender/blenkernel/intern/nla.c | |
parent | 677ed28b3e016883c0138f069c6939fb88cb37b1 (diff) |
NLA backend code cleanups: Ensure all user-count management is done
via id_us_*() functions instead of direct access, for more security
Diffstat (limited to 'source/blender/blenkernel/intern/nla.c')
-rw-r--r-- | source/blender/blenkernel/intern/nla.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/nla.c b/source/blender/blenkernel/intern/nla.c index ea2948f305e..6db03909aa3 100644 --- a/source/blender/blenkernel/intern/nla.c +++ b/source/blender/blenkernel/intern/nla.c @@ -78,7 +78,7 @@ void free_nlastrip (ListBase *strips, NlaStrip *strip) /* remove reference to action */ if (strip->act) - strip->act->id.us--; + id_us_min(&strip->act->id); /* free remapping info */ //if (strip->remap) @@ -160,7 +160,7 @@ NlaStrip *copy_nlastrip (NlaStrip *strip) /* increase user-count of action */ if (strip_d->act) - strip_d->act->id.us++; + id_us_plus(&strip_d->act->id); /* copy F-Curves and modifiers */ copy_fcurves(&strip_d->fcurves, &strip->fcurves); @@ -1438,7 +1438,7 @@ void BKE_nla_action_pushdown (AnimData *adt) /* do other necessary work on strip */ if (strip) { /* clear reference to action now that we've pushed it onto the stack */ - adt->action->id.us--; + id_us_min(&adt->action->id); adt->action= NULL; /* if the strip is the first one in the track it lives in, check if there |