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;
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs