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:
authorHans Goudey <h.goudey@me.com>2022-03-24 07:01:02 +0300
committerHans Goudey <h.goudey@me.com>2022-03-24 07:05:46 +0300
commite253f9f66d6f63592ffd97afe207ef7c72547d03 (patch)
tree9a9345ab1184f0f6fda51740967595cc2f52a4bf /source/blender/geometry
parenta1598d6835d0c579579881bca900f9259b26d11a (diff)
Cleanup: Adjust naming in new curves code
Rename "size" variables and functions to use "num" instead, based on T85728 (though this doesn't apply to simple C++ containers, it applies here). Rename "range" to "points" in some functions, so be more specific. Differential Revision: https://developer.blender.org/D14431
Diffstat (limited to 'source/blender/geometry')
-rw-r--r--source/blender/geometry/intern/realize_instances.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/geometry/intern/realize_instances.cc b/source/blender/geometry/intern/realize_instances.cc
index 502f5f0232e..414c90b06e1 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.points_size()};
- const IndexRange dst_curve_range{task.start_indices.curve, curves.curves_size()};
+ const IndexRange dst_point_range{task.start_indices.point, curves.num_points()};
+ const IndexRange dst_curve_range{task.start_indices.curve, curves.num_curves()};
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.points_size());
+ return IndexRange(task.start_indices.point, curves.num_points());
case ATTR_DOMAIN_CURVE:
- return IndexRange(task.start_indices.curve, curves.curves_size());
+ return IndexRange(task.start_indices.curve, curves.num_curves());
default:
BLI_assert_unreachable();
return IndexRange();