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:
authorCampbell Barton <ideasman42@gmail.com>2021-06-18 07:27:41 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-06-18 07:27:41 +0300
commit50a4b9d502104aabdd33ed924a89fe018cfa80b3 (patch)
tree2dc49da2a161034fbe1edd04ead44dbc924fbed7 /source/blender/blenkernel/intern/mesh_sample.cc
parent5f0d4fef91148f3dfb9f962d77c809a293a76ad3 (diff)
Cleanup: replace 'unsigned in' with 'uint'
Diffstat (limited to 'source/blender/blenkernel/intern/mesh_sample.cc')
-rw-r--r--source/blender/blenkernel/intern/mesh_sample.cc17
1 files changed, 7 insertions, 10 deletions
diff --git a/source/blender/blenkernel/intern/mesh_sample.cc b/source/blender/blenkernel/intern/mesh_sample.cc
index 7bc73762506..bd46407d060 100644
--- a/source/blender/blenkernel/intern/mesh_sample.cc
+++ b/source/blender/blenkernel/intern/mesh_sample.cc
@@ -157,8 +157,8 @@ void sample_face_attribute(const Mesh &mesh,
}
MeshAttributeInterpolator::MeshAttributeInterpolator(const Mesh *mesh,
- const Span<float3> positions,
- const Span<int> looptri_indices)
+ const Span<float3> positions,
+ const Span<int> looptri_indices)
: mesh_(mesh), positions_(positions), looptri_indices_(looptri_indices)
{
BLI_assert(positions.size() == looptri_indices.size());
@@ -219,8 +219,8 @@ Span<float3> MeshAttributeInterpolator::ensure_nearest_weights()
}
void MeshAttributeInterpolator::sample_attribute(const ReadAttributeLookup &src_attribute,
- OutputAttribute &dst_attribute,
- eAttributeMapMode mode)
+ OutputAttribute &dst_attribute,
+ eAttributeMapMode mode)
{
if (!src_attribute || !dst_attribute) {
return;
@@ -247,18 +247,15 @@ void MeshAttributeInterpolator::sample_attribute(const ReadAttributeLookup &src_
/* Interpolate the source attributes on the surface. */
switch (src_attribute.domain) {
case ATTR_DOMAIN_POINT: {
- sample_point_attribute(
- *mesh_, looptri_indices_, weights, src_varray, dst_span);
+ sample_point_attribute(*mesh_, looptri_indices_, weights, src_varray, dst_span);
break;
}
case ATTR_DOMAIN_FACE: {
- sample_face_attribute(
- *mesh_, looptri_indices_, src_varray, dst_span);
+ sample_face_attribute(*mesh_, looptri_indices_, src_varray, dst_span);
break;
}
case ATTR_DOMAIN_CORNER: {
- sample_corner_attribute(
- *mesh_, looptri_indices_, weights, src_varray, dst_span);
+ sample_corner_attribute(*mesh_, looptri_indices_, weights, src_varray, dst_span);
break;
}
case ATTR_DOMAIN_EDGE: {