From 1dd17726f2a17483b62e762da26a236d6440f8a9 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Wed, 21 Apr 2021 17:02:19 +0200 Subject: Geometry Nodes: extract mesh surface sampling functions to separate file --- source/blender/blenkernel/BKE_attribute_math.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/blenkernel/BKE_attribute_math.hh') 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 -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 void convert_to_static_type(const fn::CPPType &cpp_type, const Func &func) +template +inline void convert_to_static_type(const fn::CPPType &cpp_type, const Func &func) { if (cpp_type.is()) { func(float()); -- cgit v1.2.3