From 5d9ade27de54b6910ed32f92d20d8f692959603c Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Sat, 2 Jul 2022 11:45:57 +0200 Subject: BLI: improve span access to virtual arrays * Make the class names more consistent. * Implement missing move-constructors and assignment-operators. --- source/blender/geometry/intern/realize_instances.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/geometry/intern/realize_instances.cc') diff --git a/source/blender/geometry/intern/realize_instances.cc b/source/blender/geometry/intern/realize_instances.cc index bd4099d37f9..060a1aa7603 100644 --- a/source/blender/geometry/intern/realize_instances.cc +++ b/source/blender/geometry/intern/realize_instances.cc @@ -66,7 +66,7 @@ struct AttributeFallbacksArray { struct PointCloudRealizeInfo { const PointCloud *pointcloud = nullptr; /** Matches the order stored in #AllPointCloudsInfo.attributes. */ - Array> attributes; + Array> attributes; /** Id attribute on the point cloud. If there are no ids, this #Span is empty. */ Span stored_ids; }; @@ -96,7 +96,7 @@ struct MeshRealizeInfo { /** Maps old material indices to new material indices. */ Array material_index_map; /** Matches the order in #AllMeshesInfo.attributes. */ - Array> attributes; + Array> attributes; /** Vertex ids stored on the mesh. If there are no ids, this #Span is empty. */ Span stored_vertex_ids; }; @@ -116,7 +116,7 @@ struct RealizeCurveInfo { /** * Matches the order in #AllCurvesInfo.attributes. */ - Array> attributes; + Array> attributes; /** ID attribute on the curves. If there are no ids, this #Span is empty. */ Span stored_ids; @@ -283,7 +283,7 @@ static void threaded_fill(const GPointer value, GMutableSpan dst) } static void copy_generic_attributes_to_result( - const Span> src_attributes, + const Span> src_attributes, const AttributeFallbacksArray &attribute_fallbacks, const OrderedAttributes &ordered_attributes, const FunctionRef &range_fn, -- cgit v1.2.3