diff options
author | Hans Goudey <h.goudey@me.com> | 2022-10-12 20:23:23 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-10-12 20:23:23 +0300 |
commit | a6db2c22b11e5b95a45f15085e40c73dd26b2336 (patch) | |
tree | 1e0085a4c97145cb6743a7587d792f47776dadd1 /intern/cycles/blender | |
parent | 605f87256ec7dbfc4954492a9cc864b9a76253f7 (diff) |
Cycles: Use 0.01m as default point cloud radius
Currently Cycles uses zero as a default radius when no "radius"
attribute exists. This is more confusing than helpful. Instead,
use the same default radius as EEVEE and Workbench.
Diffstat (limited to 'intern/cycles/blender')
-rw-r--r-- | intern/cycles/blender/pointcloud.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/blender/pointcloud.cpp b/intern/cycles/blender/pointcloud.cpp index 35be2916e43..2acc0f2ab7f 100644 --- a/intern/cycles/blender/pointcloud.cpp +++ b/intern/cycles/blender/pointcloud.cpp @@ -194,7 +194,7 @@ static void export_pointcloud(Scene *scene, /* Export points. */ for (int i = 0; i < num_points; i++) { const float3 co = get_float3(b_attr_position.data[i].vector()); - const float radius = b_attr_radius ? b_attr_radius->data[i].value() : 0.0f; + const float radius = b_attr_radius ? b_attr_radius->data[i].value() : 0.01f; pointcloud->add_point(co, radius); /* Random number per point. */ |