diff options
Diffstat (limited to 'source/blender/blenkernel/intern/material.c')
-rw-r--r-- | source/blender/blenkernel/intern/material.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c index 8c09cb551a1..db9fccbc443 100644 --- a/source/blender/blenkernel/intern/material.c +++ b/source/blender/blenkernel/intern/material.c @@ -319,9 +319,7 @@ Material *BKE_gpencil_material_add(Main *bmain, const char *name) Material *BKE_material_copy(Main *bmain, const Material *ma) { - Material *ma_copy; - BKE_id_copy(bmain, &ma->id, (ID **)&ma_copy); - return ma_copy; + return (Material *)BKE_id_copy(bmain, &ma->id); } Material ***BKE_object_material_array_p(Object *ob) |