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:
authorJacques Lucke <jacques@blender.org>2021-04-21 18:02:19 +0300
committerJacques Lucke <jacques@blender.org>2021-04-21 18:02:19 +0300
commit1dd17726f2a17483b62e762da26a236d6440f8a9 (patch)
treec6879ab0d3ff4d24abc3bbadf64966f4d7dc71d5 /source/blender/blenkernel/BKE_attribute_math.hh
parentd5309bf4cf9e36e161027cf7ad1775eb355433f1 (diff)
Geometry Nodes: extract mesh surface sampling functions to separate file
Diffstat (limited to 'source/blender/blenkernel/BKE_attribute_math.hh')
-rw-r--r--source/blender/blenkernel/BKE_attribute_math.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_attribute_math.hh b/source/blender/blenkernel/BKE_attribute_math.hh
index 5f3a8a3556a..65ac5b5bfa8 100644
--- a/source/blender/blenkernel/BKE_attribute_math.hh
+++ b/source/blender/blenkernel/BKE_attribute_math.hh
@@ -31,7 +31,7 @@ using fn::CPPType;
* Utility function that simplifies calling a templated function based on a custom data type.
*/
template<typename Func>
-void convert_to_static_type(const CustomDataType data_type, const Func &func)
+inline void convert_to_static_type(const CustomDataType data_type, const Func &func)
{
switch (data_type) {
case CD_PROP_FLOAT:
@@ -58,7 +58,8 @@ void convert_to_static_type(const CustomDataType data_type, const Func &func)
}
}
-template<typename Func> void convert_to_static_type(const fn::CPPType &cpp_type, const Func &func)
+template<typename Func>
+inline void convert_to_static_type(const fn::CPPType &cpp_type, const Func &func)
{
if (cpp_type.is<float>()) {
func(float());