From 03ef0cfe3c3327647be5289d8ecddea820401221 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 7 Oct 2020 16:13:01 +0200 Subject: Refactor `BKE_id_copy` to return the new ID pointer. No reasons to keep the new ID pointer as parameter here. Part of T71219. --- source/blender/blenkernel/intern/linestyle.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/blender/blenkernel/intern/linestyle.c') diff --git a/source/blender/blenkernel/intern/linestyle.c b/source/blender/blenkernel/intern/linestyle.c index f0f06b6402a..eae7f49cfac 100644 --- a/source/blender/blenkernel/intern/linestyle.c +++ b/source/blender/blenkernel/intern/linestyle.c @@ -812,9 +812,7 @@ FreestyleLineStyle *BKE_linestyle_new(struct Main *bmain, const char *name) FreestyleLineStyle *BKE_linestyle_copy(struct Main *bmain, const FreestyleLineStyle *linestyle) { - FreestyleLineStyle *linestyle_copy; - BKE_id_copy(bmain, &linestyle->id, (ID **)&linestyle_copy); - return linestyle_copy; + return (FreestyleLineStyle *)BKE_id_copy(bmain, &linestyle->id); } FreestyleLineStyle *BKE_linestyle_active_from_view_layer(ViewLayer *view_layer) -- cgit v1.2.3