diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-11-07 15:55:29 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-11-07 22:58:53 +0300 |
commit | 4779165ca18ae3ced005aad129575b70fc6c4f9d (patch) | |
tree | d1e70f122a31b87ac0137074aa1d561dc3bf1329 /source/blender/makesrna/intern/rna_animation.c | |
parent | a0d8e52b54ea9c27b47ddf96ff51cc934534d40e (diff) |
Fix dpesgraph wrongly refcounting NLA strip actions when duplicating IDs.
NLA strips are users of their action, so we need to pass along ID
management flags.
This commit also cleans up a bit things by passing along ID_CREATE/COPY
flags instead of dummy booleans...
Diffstat (limited to 'source/blender/makesrna/intern/rna_animation.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_animation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_animation.c b/source/blender/makesrna/intern/rna_animation.c index ee399ee8648..33cf8b581b8 100644 --- a/source/blender/makesrna/intern/rna_animation.c +++ b/source/blender/makesrna/intern/rna_animation.c @@ -603,7 +603,7 @@ bool rna_AnimaData_override_apply( if (adt_dst == NULL && adt_src != NULL) { /* Copy anim data from reference into final local ID. */ - BKE_animdata_copy_id(NULL, ptr_dst->id.data, ptr_src->id.data, false, true); + BKE_animdata_copy_id(NULL, ptr_dst->id.data, ptr_src->id.data, 0); return true; } else if (adt_dst != NULL && adt_src == NULL) { |