diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-25 21:19:55 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-25 21:19:55 +0300 |
commit | 04d46bdb83deecfa7dfcaf3c0369229aa9816195 (patch) | |
tree | 0218f29c249f6626dbce49fe009c949c4ef53b32 /source/blender/draw/intern | |
parent | 89f4191a53be04940e945b56e533ff2f991bab13 (diff) |
Pointcloud: workaround for a viewport drawing issue
Diffstat (limited to 'source/blender/draw/intern')
-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; |