[Bf-blender-cvs] [6d89120248f] bli-math-basic-types: Remove redundant template type parameter
Hans Goudey
noreply at git.blender.org
Wed Feb 16 16:34:08 CET 2022
Commit: 6d89120248f3dd24d2090814b29af0ca12d5d7c6
Author: Hans Goudey
Date: Tue Feb 15 12:22:56 2022 -0600
Branches: bli-math-basic-types
https://developer.blender.org/rB6d89120248f3dd24d2090814b29af0ca12d5d7c6
Remove redundant template type parameter
===================================================================
M source/blender/blenlib/BLI_math_base.hh
===================================================================
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;
}
More information about the Bf-blender-cvs
mailing list