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
path: root/source
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-08-31 01:03:04 +0300
committerHans Goudey <h.goudey@me.com>2022-08-31 01:03:04 +0300
commit0331a8c67c8035c29ac6b7655cb4e4d837ddabba (patch)
tree4a1e2e021135917ae3395f4ed25866bf70d94a47 /source
parentb5bc08686418e6d684b28d4793de2798d049fa8b (diff)
Cleanup: Remove redundant addition of attribute
The radius attribute is aleady added in `pointcloud_random`.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/pointcloud.cc7
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;