diff options
Diffstat (limited to 'source/blender/nodes/geometry/nodes/legacy/node_geo_align_rotation_to_vector.cc')
-rw-r--r-- | source/blender/nodes/geometry/nodes/legacy/node_geo_align_rotation_to_vector.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/nodes/geometry/nodes/legacy/node_geo_align_rotation_to_vector.cc b/source/blender/nodes/geometry/nodes/legacy/node_geo_align_rotation_to_vector.cc index 5b8cd08207b..b95548c2dee 100644 --- a/source/blender/nodes/geometry/nodes/legacy/node_geo_align_rotation_to_vector.cc +++ b/source/blender/nodes/geometry/nodes/legacy/node_geo_align_rotation_to_vector.cc @@ -80,7 +80,7 @@ static void align_rotations_auto_pivot(const VArray<float3> &vectors, const float3 local_main_axis, const MutableSpan<float3> rotations) { - threading::parallel_for(IndexRange(vectors->size()), 128, [&](IndexRange range) { + threading::parallel_for(IndexRange(vectors.size()), 128, [&](IndexRange range) { for (const int i : range) { const float3 vector = vectors[i]; if (is_zero_v3(vector)) { @@ -131,7 +131,7 @@ static void align_rotations_fixed_pivot(const VArray<float3> &vectors, return; } - threading::parallel_for(IndexRange(vectors->size()), 128, [&](IndexRange range) { + threading::parallel_for(IndexRange(vectors.size()), 128, [&](IndexRange range) { for (const int i : range) { const float3 vector = vectors[i]; if (is_zero_v3(vector)) { |