Pointcloud: workaround for a viewport drawing issue

This commit is contained in:
Jacques Lucke 2020-07-25 20:19:55 +02:00
parent 89f4191a53
commit 04d46bdb83
1 changed files with 4 additions and 1 deletions

View File

@ -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;