Cleanup: Remove redundant addition of attribute

The radius attribute is aleady added in `pointcloud_random`.
This commit is contained in:
Hans Goudey 2022-08-30 17:03:04 -05:00
parent b5bc086864
commit 0331a8c67c
1 changed files with 0 additions and 7 deletions

View File

@ -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;