From 6e72e3fdb295fdfd3e252bd48be96e2d832e43f2 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Thu, 24 Mar 2022 20:48:08 -0500 Subject: Cleanup: Further renaming in new curves code A follow-up to e253f9f66d6f. Follow the policy from T85728 completely (using "num" as a prefix) and rename another function. --- 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 414c90b06e1..8d186edc607 100644 --- a/source/blender/geometry/intern/realize_instances.cc +++ b/source/blender/geometry/intern/realize_instances.cc @@ -1139,8 +1139,8 @@ static void execute_realize_curve_task(const RealizeInstancesOptions &options, const Curves &curves_id = *curves_info.curves; const bke::CurvesGeometry &curves = bke::CurvesGeometry::wrap(curves_id.geometry); - const IndexRange dst_point_range{task.start_indices.point, curves.num_points()}; - const IndexRange dst_curve_range{task.start_indices.curve, curves.num_curves()}; + const IndexRange dst_point_range{task.start_indices.point, curves.points_num()}; + const IndexRange dst_curve_range{task.start_indices.curve, curves.curves_num()}; copy_transformed_positions( curves.positions(), task.transform, dst_curves.positions().slice(dst_point_range)); @@ -1194,9 +1194,9 @@ static void execute_realize_curve_task(const RealizeInstancesOptions &options, [&](const AttributeDomain domain) { switch (domain) { case ATTR_DOMAIN_POINT: - return IndexRange(task.start_indices.point, curves.num_points()); + return IndexRange(task.start_indices.point, curves.points_num()); case ATTR_DOMAIN_CURVE: - return IndexRange(task.start_indices.curve, curves.num_curves()); + return IndexRange(task.start_indices.curve, curves.curves_num()); default: BLI_assert_unreachable(); return IndexRange(); -- cgit v1.2.3