Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2020-10-07 17:13:01 +0300
committerBastien Montagne <bastien@blender.org>2020-10-07 19:05:06 +0300
commit03ef0cfe3c3327647be5289d8ecddea820401221 (patch)
treea761b84e34ca5e11a133fa393261f151249cf517 /source/blender/blenkernel/intern/movieclip.c
parent7c9131d11eb01a70db440fac7bb3f4b3833d544a (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/movieclip.c')
-rw-r--r--source/blender/blenkernel/intern/movieclip.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/movieclip.c b/source/blender/blenkernel/intern/movieclip.c
index 364e6c9bfe4..861ea26f7fb 100644
--- a/source/blender/blenkernel/intern/movieclip.c
+++ b/source/blender/blenkernel/intern/movieclip.c
@@ -1920,9 +1920,7 @@ void BKE_movieclip_build_proxy_frame_for_ibuf(MovieClip *clip,
MovieClip *BKE_movieclip_copy(Main *bmain, const MovieClip *clip)
{
- MovieClip *clip_copy;
- BKE_id_copy(bmain, &clip->id, (ID **)&clip_copy);
- return clip_copy;
+ return (MovieClip *)BKE_id_copy(bmain, &clip->id);
}
float BKE_movieclip_remap_scene_to_clip_frame(const MovieClip *clip, float framenr)