diff options
author | Bastien Montagne <bastien@blender.org> | 2020-10-02 18:38:28 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-10-02 18:40:51 +0300 |
commit | 0db98b214d468864630fc9bba72be4ff9b2548e5 (patch) | |
tree | 5aaef5682703c722d4827616eb160656aff05f68 /source/blender/editors/include/ED_armature.h | |
parent | 4b36552967bf55b1bf707acd3917280b42b12c52 (diff) |
Fix T81345: part four, fix handling of IDProperties in edit armature undo.
Specific armature editing undo code would duplicate and store a list of
editbones. However, those are not linked to main data storage and should
therefore never affect ID usercounting.
Diffstat (limited to 'source/blender/editors/include/ED_armature.h')
-rw-r--r-- | source/blender/editors/include/ED_armature.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/include/ED_armature.h b/source/blender/editors/include/ED_armature.h index 1eeb81d4dc7..3501acd4fdf 100644 --- a/source/blender/editors/include/ED_armature.h +++ b/source/blender/editors/include/ED_armature.h @@ -171,8 +171,10 @@ void ED_armature_from_edit(struct Main *bmain, struct bArmature *arm); void ED_armature_to_edit(struct bArmature *arm); void ED_armature_edit_free(struct bArmature *arm); void ED_armature_ebone_listbase_temp_clear(struct ListBase *lb); -void ED_armature_ebone_listbase_free(struct ListBase *lb); -void ED_armature_ebone_listbase_copy(struct ListBase *lb_dst, struct ListBase *lb_src); +void ED_armature_ebone_listbase_free(struct ListBase *lb, const bool do_id_user); +void ED_armature_ebone_listbase_copy(struct ListBase *lb_dst, + struct ListBase *lb_src, + const bool do_id_user); /* low level selection functions which handle */ int ED_armature_ebone_selectflag_get(const struct EditBone *ebone); |