diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-12-01 20:56:01 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-12-01 21:48:48 +0300 |
commit | 9afd6e7b70d5d236843480c9cad879740b2bfb0a (patch) | |
tree | 38daf607101d273e6bc18fc6dde1fc39e1c85f4b /source/blender/blenkernel/intern/pointcloud.cc | |
parent | 7336af32593721429676e32b475de8e7b03e37af (diff) |
Cleanup: clarify material copying for hair and pointclouds
No functional change, just more clear this way it comes from src.
Diffstat (limited to 'source/blender/blenkernel/intern/pointcloud.cc')
-rw-r--r-- | source/blender/blenkernel/intern/pointcloud.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/pointcloud.cc b/source/blender/blenkernel/intern/pointcloud.cc index f8ef6eb4a54..e9b7f82b3c4 100644 --- a/source/blender/blenkernel/intern/pointcloud.cc +++ b/source/blender/blenkernel/intern/pointcloud.cc @@ -79,7 +79,7 @@ static void pointcloud_copy_data(Main *UNUSED(bmain), ID *id_dst, const ID *id_s { PointCloud *pointcloud_dst = (PointCloud *)id_dst; const PointCloud *pointcloud_src = (const PointCloud *)id_src; - pointcloud_dst->mat = static_cast<Material **>(MEM_dupallocN(pointcloud_dst->mat)); + pointcloud_dst->mat = static_cast<Material **>(MEM_dupallocN(pointcloud_src->mat)); const eCDAllocType alloc_type = (flag & LIB_ID_COPY_CD_REFERENCE) ? CD_REFERENCE : CD_DUPLICATE; CustomData_copy(&pointcloud_src->pdata, |