diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-10-29 13:13:19 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-10-29 13:48:37 +0300 |
commit | b2411fe269caa80b61745209486ed0e8fca8bc79 (patch) | |
tree | 7cdc8203c7771434ce39c184dd0a8deacd3e28b4 /source/blender/makesrna/intern/rna_nla.c | |
parent | 61d49d3448bbe6ea1c7dc8902c83e63757edc734 (diff) |
Fix unneeded/unwanted user counter when freeing CoW NLA
Diffstat (limited to 'source/blender/makesrna/intern/rna_nla.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_nla.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_nla.c b/source/blender/makesrna/intern/rna_nla.c index 025bc705560..48be6421f36 100644 --- a/source/blender/makesrna/intern/rna_nla.c +++ b/source/blender/makesrna/intern/rna_nla.c @@ -383,7 +383,7 @@ static NlaStrip *rna_NlaStrip_new(NlaTrack *track, bContext *C, ReportList *repo if (BKE_nlastrips_add_strip(&track->strips, strip) == 0) { BKE_report(reports, RPT_ERROR, "Unable to add strip (the track does not have any space to accommodate this new strip)"); - BKE_nlastrip_free(NULL, strip); + BKE_nlastrip_free(NULL, strip, true); return NULL; } @@ -424,7 +424,7 @@ static void rna_NlaStrip_remove(NlaTrack *track, bContext *C, ReportList *report return; } - BKE_nlastrip_free(&track->strips, strip); + BKE_nlastrip_free(&track->strips, strip, true); RNA_POINTER_INVALIDATE(strip_ptr); WM_event_add_notifier(C, NC_ANIMATION | ND_NLA | NA_REMOVED, NULL); |