[Bf-blender-cvs] [0331a8c67c8] master: Cleanup: Remove redundant addition of attribute

Hans Goudey noreply at git.blender.org
Wed Aug 31 00:03:13 CEST 2022


Commit: 0331a8c67c8035c29ac6b7655cb4e4d837ddabba
Author: Hans Goudey
Date:   Tue Aug 30 17:03:04 2022 -0500
Branches: master
https://developer.blender.org/rB0331a8c67c8035c29ac6b7655cb4e4d837ddabba

Cleanup: Remove redundant addition of attribute

The radius attribute is aleady added in `pointcloud_random`.

===================================================================

M	source/blender/blenkernel/intern/pointcloud.cc

===================================================================

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;



More information about the Bf-blender-cvs mailing list