diff options
author | Hans Goudey <h.goudey@me.com> | 2022-08-31 01:03:04 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-08-31 01:03:04 +0300 |
commit | 0331a8c67c8035c29ac6b7655cb4e4d837ddabba (patch) | |
tree | 4a1e2e021135917ae3395f4ed25866bf70d94a47 /source/blender/blenkernel/intern/pointcloud.cc | |
parent | b5bc08686418e6d684b28d4793de2798d049fa8b (diff) |
Cleanup: Remove redundant addition of attribute
The radius attribute is aleady added in `pointcloud_random`.
Diffstat (limited to 'source/blender/blenkernel/intern/pointcloud.cc')
-rw-r--r-- | source/blender/blenkernel/intern/pointcloud.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/source/blender/blenkernel/intern/pointcloud.cc b/source/blender/blenkernel/intern/pointcloud.cc index 6738b5f3260..14ca3f58db9 100644 --- a/source/blender/blenkernel/intern/pointcloud.cc +++ b/source/blender/blenkernel/intern/pointcloud.cc @@ -228,13 +228,6 @@ void *BKE_pointcloud_add_default(Main *bmain, const char *name) PointCloud *pointcloud = static_cast<PointCloud *>(BKE_libblock_alloc(bmain, ID_PT, name, 0)); pointcloud_init_data(&pointcloud->id); - - CustomData_add_layer_named(&pointcloud->pdata, - CD_PROP_FLOAT, - CD_SET_DEFAULT, - nullptr, - pointcloud->totpoint, - POINTCLOUD_ATTR_RADIUS); pointcloud_random(pointcloud); return pointcloud; |