[Bf-blender-cvs] [0d25169dc51] master: Fix T101711: Curve to points node sometimes skips initializing radius

Hans Goudey noreply at git.blender.org
Wed Oct 12 19:29:37 CEST 2022


Commit: 0d25169dc5181e2737599582f3009751d84356ca
Author: Hans Goudey
Date:   Wed Oct 12 12:29:25 2022 -0500
Branches: master
https://developer.blender.org/rB0d25169dc5181e2737599582f3009751d84356ca

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.

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

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

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

diff --git a/source/blender/blenkernel/intern/pointcloud.cc b/source/blender/blenkernel/intern/pointcloud.cc
index c73bbb91965..119daccce20 100644
--- a/source/blender/blenkernel/intern/pointcloud.cc
+++ b/source/blender/blenkernel/intern/pointcloud.cc
@@ -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;



More information about the Bf-blender-cvs mailing list