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-15 21:22:56 +0300
committerHans Goudey <h.goudey@me.com>2022-02-15 21:22:56 +0300
commit6d89120248f3dd24d2090814b29af0ca12d5d7c6 (patch)
tree069227d43552a4e40713acac1cdf3e970911e4fb
parente9beb6827ac9e43f6881a9be5e6672f367a34a64 (diff)
Remove redundant template type parameter
-rw-r--r--source/blender/blenlib/BLI_math_base.hh7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/blenlib/BLI_math_base.hh b/source/blender/blenlib/BLI_math_base.hh
index ab8b5d99393..6a988eda8a9 100644
--- a/source/blender/blenlib/BLI_math_base.hh
+++ b/source/blender/blenlib/BLI_math_base.hh
@@ -89,11 +89,8 @@ template<typename T, BLI_ENABLE_IF((is_math_float_type<T>))> inline T fract(cons
return a - std::floor(a);
}
-template<typename T,
- typename FactorT,
- BLI_ENABLE_IF((is_math_float_type<T>)),
- BLI_ENABLE_IF((is_math_float_type<T>))>
-inline T interpolate(const T &a, const T &b, const FactorT &t)
+template<typename T, BLI_ENABLE_IF((is_math_float_type<T>))>
+inline T interpolate(const T &a, const T &b, const T &t)
{
return a * (1 - t) + b * t;
}