From d5934974219135102f364f57c45a8b1465e2b8d9 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Wed, 7 Sep 2022 21:41:39 -0500 Subject: Cleanup: Use C++ methods to retrieve attribute accessors Replace `mesh_attributes`, `mesh_attributes_for_write` and the point cloud versions with methods on the `Mesh` and `PointCloud` types. This makes them friendlier to use and improves readability. Differential Revision: https://developer.blender.org/D15907 --- source/blender/draw/intern/draw_cache_impl_pointcloud.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/draw/intern/draw_cache_impl_pointcloud.cc') diff --git a/source/blender/draw/intern/draw_cache_impl_pointcloud.cc b/source/blender/draw/intern/draw_cache_impl_pointcloud.cc index 57efed855f5..a43b23c8969 100644 --- a/source/blender/draw/intern/draw_cache_impl_pointcloud.cc +++ b/source/blender/draw/intern/draw_cache_impl_pointcloud.cc @@ -141,7 +141,7 @@ static void pointcloud_batch_cache_ensure_pos(const PointCloud &pointcloud, return; } - const bke::AttributeAccessor attributes = bke::pointcloud_attributes(pointcloud); + const bke::AttributeAccessor attributes = pointcloud.attributes(); const VArraySpan positions = attributes.lookup("position", ATTR_DOMAIN_POINT); const VArray radii = attributes.lookup("radius", ATTR_DOMAIN_POINT); /* From the opengl wiki: -- cgit v1.2.3