Fix T101711: Curve to points node sometimes skips initializing radius

Don't add the radius attribute to point clouds by default, since not
having a radius attribute should be a valid state. The radius is only
set when a radius attribute also exists on curves.
This commit is contained in:
Hans Goudey 2022-10-12 12:29:25 -05:00
parent a6db2c22b1
commit 0d25169dc5
Notes: blender-bot 2023-02-14 08:10:10 +01:00
Referenced by issue #101711, Regression: Geometry Node: Delete points created from curve will broken radius attribute
1 changed files with 0 additions and 6 deletions

View File

@ -239,12 +239,6 @@ PointCloud *BKE_pointcloud_new_nomain(const int totpoint)
nullptr, ID_PT, BKE_idtype_idcode_to_name(ID_PT), LIB_ID_CREATE_LOCALIZE));
pointcloud_init_data(&pointcloud->id);
CustomData_add_layer_named(&pointcloud->pdata,
CD_PROP_FLOAT,
CD_SET_DEFAULT,
nullptr,
pointcloud->totpoint,
POINTCLOUD_ATTR_RADIUS);
CustomData_realloc(&pointcloud->pdata, 0, totpoint);
pointcloud->totpoint = totpoint;