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-05-13 19:44:09 +0300
committerHans Goudey <h.goudey@me.com>2022-05-13 19:44:09 +0300
commitee363ee7b3a26e3236f2107b8a8324877404db04 (patch)
tree8241af9ac1af84b3c3ac08354aa4b639f85ec44d /source/blender/editors/sculpt_paint
parentcf69652618fefcd22b2cde9a2e0338b63f9a003e (diff)
Cleanup: Use standard variable names for curves
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/curves_sculpt_delete.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_delete.cc b/source/blender/editors/sculpt_paint/curves_sculpt_delete.cc
index a4962fc6b5a..bd0bbad3bb8 100644
--- a/source/blender/editors/sculpt_paint/curves_sculpt_delete.cc
+++ b/source/blender/editors/sculpt_paint/curves_sculpt_delete.cc
@@ -163,10 +163,10 @@ struct DeleteOperationExecutor {
threading::parallel_for(curves_->curves_range(), 512, [&](IndexRange curve_range) {
for (const int curve_i : curve_range) {
- const IndexRange point_range = curves_->points_for_curve(curve_i);
- for (const int segment_i : IndexRange(point_range.size() - 1)) {
- const float3 pos1_cu = brush_transform_inv * positions_cu[point_range[segment_i]];
- const float3 pos2_cu = brush_transform_inv * positions_cu[point_range[segment_i + 1]];
+ const IndexRange points = curves_->points_for_curve(curve_i);
+ for (const int segment_i : IndexRange(points.size() - 1)) {
+ const float3 pos1_cu = brush_transform_inv * positions_cu[points[segment_i]];
+ const float3 pos2_cu = brush_transform_inv * positions_cu[points[segment_i + 1]];
float2 pos1_re, pos2_re;
ED_view3d_project_float_v2_m4(region_, pos1_cu, pos1_re, projection.values);