diff options
author | Bastien Montagne <bastien@blender.org> | 2020-10-07 17:13:01 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-10-07 19:05:06 +0300 |
commit | 03ef0cfe3c3327647be5289d8ecddea820401221 (patch) | |
tree | a761b84e34ca5e11a133fa393261f151249cf517 /source/blender/blenkernel/intern/armature.c | |
parent | 7c9131d11eb01a70db440fac7bb3f4b3833d544a (diff) |
Refactor `BKE_id_copy` to return the new ID pointer.
No reasons to keep the new ID pointer as parameter here.
Part of T71219.
Diffstat (limited to 'source/blender/blenkernel/intern/armature.c')
-rw-r--r-- | source/blender/blenkernel/intern/armature.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c index 0a731f0a7f0..742f57f32a3 100644 --- a/source/blender/blenkernel/intern/armature.c +++ b/source/blender/blenkernel/intern/armature.c @@ -428,9 +428,7 @@ static void copy_bonechildren_custom_handles(Bone *bone_dst, bArmature *arm_dst) bArmature *BKE_armature_copy(Main *bmain, const bArmature *arm) { - bArmature *arm_copy; - BKE_id_copy(bmain, &arm->id, (ID **)&arm_copy); - return arm_copy; + return (bArmature *)BKE_id_copy(bmain, &arm->id); } /** \} */ |