Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2020-04-10 00:31:36 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-04-10 09:34:07 +0300
commit337a7ed292638542f702f1ce2119dc73072f0b56 (patch)
tree4d9122d5af058a8bf5cbb0e45b4a2539df0a1a56 /source/blender/draw/intern/draw_cache_impl_pointcloud.c
parent1a3928f33c76074a8d59eeca2b58187774cd7b4e (diff)
Pointclouds: fix point drawing
The radius component is only one float. This resulted in only a third of intended points to draw and could lead to glitches. Pointcloud drawing will still change a lot in the future, this is just to be able to work on some simple tools. Differential Revision: https://developer.blender.org/D7390
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_pointcloud.c')
-rw-r--r--source/blender/draw/intern/draw_cache_impl_pointcloud.c2
1 files changed, 1 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 83757cb714a..53939b35285 100644
--- a/source/blender/draw/intern/draw_cache_impl_pointcloud.c
+++ b/source/blender/draw/intern/draw_cache_impl_pointcloud.c
@@ -134,7 +134,7 @@ static void pointcloud_batch_cache_ensure_pos(Object *ob, PointCloudBatchCache *
/* initialize vertex format */
pos_id = GPU_vertformat_attr_add(&format, "pointcloud_pos", GPU_COMP_F32, 3, GPU_FETCH_FLOAT);
radius_id = GPU_vertformat_attr_add(
- &format, "pointcloud_radius", GPU_COMP_F32, 3, GPU_FETCH_FLOAT);
+ &format, "pointcloud_radius", GPU_COMP_F32, 1, GPU_FETCH_FLOAT);
}
GPU_VERTBUF_DISCARD_SAFE(cache->pos);