diff options
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_pointcloud.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_pointcloud.c b/source/blender/draw/intern/draw_cache_impl_pointcloud.c index 17902f27513..0a1687524f5 100644 --- a/source/blender/draw/intern/draw_cache_impl_pointcloud.c +++ b/source/blender/draw/intern/draw_cache_impl_pointcloud.c @@ -155,7 +155,10 @@ static void pointcloud_batch_cache_ensure_pos(Object *ob, PointCloudBatchCache * } PointCloud *pointcloud = ob->data; - const bool has_radius = pointcloud->radius != NULL; + /* Assume points always have a radius for now. + * TODO: Check if the logic below makes sense when there are multiple point clouds, some that + * have a radius and others that don't. */ + const bool has_radius = true; static GPUVertFormat format = {0}; static uint pos; |