[Bf-blender-cvs] [04d46bdb83d] master: Pointcloud: workaround for a viewport drawing issue

Jacques Lucke noreply at git.blender.org
Sat Jul 25 20:24:46 CEST 2020


Commit: 04d46bdb83deecfa7dfcaf3c0369229aa9816195
Author: Jacques Lucke
Date:   Sat Jul 25 20:19:55 2020 +0200
Branches: master
https://developer.blender.org/rB04d46bdb83deecfa7dfcaf3c0369229aa9816195

Pointcloud: workaround for a viewport drawing issue

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

M	source/blender/draw/intern/draw_cache_impl_pointcloud.c

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

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;



More information about the Bf-blender-cvs mailing list