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-02-16 23:10:21 +0300
committerHans Goudey <h.goudey@me.com>2022-02-16 23:10:21 +0300
commit8c96ee8903e0840816e340fcf29fe0606e19821b (patch)
tree7aed6bcecca4c651db0b7cee020e23b9dce65dee /source/blender/blenkernel/intern/geometry_component_instances.cc
parent6862caea5e878ab5de22513fb9ca13e17add8919 (diff)
Cleanup: Deduplicate functions for creating attributes
Diffstat (limited to 'source/blender/blenkernel/intern/geometry_component_instances.cc')
-rw-r--r--source/blender/blenkernel/intern/geometry_component_instances.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/source/blender/blenkernel/intern/geometry_component_instances.cc b/source/blender/blenkernel/intern/geometry_component_instances.cc
index b83a8b1ee94..0cb2b0e812b 100644
--- a/source/blender/blenkernel/intern/geometry_component_instances.cc
+++ b/source/blender/blenkernel/intern/geometry_component_instances.cc
@@ -439,18 +439,6 @@ class InstancePositionAttributeProvider final : public BuiltinAttributeProvider
}
};
-template<typename T>
-static GVArray make_array_read_attribute(const void *data, const int domain_size)
-{
- return VArray<T>::ForSpan(Span<T>((const T *)data, domain_size));
-}
-
-template<typename T>
-static GVMutableArray make_array_write_attribute(void *data, const int domain_size)
-{
- return VMutableArray<T>::ForSpan(MutableSpan<T>((T *)data, domain_size));
-}
-
static ComponentAttributeProviders create_attribute_providers_for_instances()
{
static InstancePositionAttributeProvider position;