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:
Diffstat (limited to 'source/blender/blenkernel/intern/pointcloud.c')
-rw-r--r--source/blender/blenkernel/intern/pointcloud.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/pointcloud.c b/source/blender/blenkernel/intern/pointcloud.c
index 32a09e0857f..9f2e9efa8cb 100644
--- a/source/blender/blenkernel/intern/pointcloud.c
+++ b/source/blender/blenkernel/intern/pointcloud.c
@@ -232,9 +232,7 @@ void *BKE_pointcloud_add_default(Main *bmain, const char *name)
PointCloud *BKE_pointcloud_copy(Main *bmain, const PointCloud *pointcloud)
{
- PointCloud *pointcloud_copy;
- BKE_id_copy(bmain, &pointcloud->id, (ID **)&pointcloud_copy);
- return pointcloud_copy;
+ return (PointCloud *)BKE_id_copy(bmain, &pointcloud->id);
}
BoundBox *BKE_pointcloud_boundbox_get(Object *ob)