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
path: root/source
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-08-06 22:24:31 +0300
committerHans Goudey <h.goudey@me.com>2022-08-06 22:24:47 +0300
commitce352e6d000ea26bd3ed179b70a1f5d5c9f6d347 (patch)
treeb9634f8b52c7ae00c0a302b3bed62c587569b2aa /source
parentfecef2ae7415cd7d7cf7907b2e704ef264fbd242 (diff)
Cleanup: Remove unused function
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/BKE_mesh_sample.hh5
-rw-r--r--source/blender/blenkernel/intern/mesh_sample.cc9
2 files changed, 0 insertions, 14 deletions
diff --git a/source/blender/blenkernel/BKE_mesh_sample.hh b/source/blender/blenkernel/BKE_mesh_sample.hh
index 0b7d1a1835f..6cafd13e398 100644
--- a/source/blender/blenkernel/BKE_mesh_sample.hh
+++ b/source/blender/blenkernel/BKE_mesh_sample.hh
@@ -13,7 +13,6 @@
#include "DNA_meshdata_types.h"
#include "BKE_attribute.h"
-#include "BKE_attribute.hh"
struct Mesh;
struct BVHTreeFromMesh;
@@ -77,10 +76,6 @@ class MeshAttributeInterpolator {
eAttributeMapMode mode,
const GMutableSpan dst);
- void sample_attribute(const GAttributeReader &src_attribute,
- GSpanAttributeWriter &dst_attribute,
- eAttributeMapMode mode);
-
protected:
Span<float3> ensure_barycentric_coords();
Span<float3> ensure_nearest_weights();
diff --git a/source/blender/blenkernel/intern/mesh_sample.cc b/source/blender/blenkernel/intern/mesh_sample.cc
index dd09a3d6917..ac2c7ea9482 100644
--- a/source/blender/blenkernel/intern/mesh_sample.cc
+++ b/source/blender/blenkernel/intern/mesh_sample.cc
@@ -252,15 +252,6 @@ void MeshAttributeInterpolator::sample_data(const GVArray &src,
}
}
-void MeshAttributeInterpolator::sample_attribute(const GAttributeReader &src_attribute,
- GSpanAttributeWriter &dst_attribute,
- eAttributeMapMode mode)
-{
- if (src_attribute && dst_attribute) {
- this->sample_data(src_attribute.varray, src_attribute.domain, mode, dst_attribute.span);
- }
-}
-
int sample_surface_points_spherical(RandomNumberGenerator &rng,
const Mesh &mesh,
const Span<int> looptri_indices_to_sample,