diff --git a/direct/src/showbase/PythonUtil.py b/direct/src/showbase/PythonUtil.py index b04957eacd..b81811599f 100644 --- a/direct/src/showbase/PythonUtil.py +++ b/direct/src/showbase/PythonUtil.py @@ -1459,7 +1459,7 @@ def lerp(v0, v1, t): returns a value lerped between v0 and v1, according to t t == 0 maps to v0, t == 1 maps to v1 """ - return v0 + (t * (v1 - v0)) + return v0 + ((v1 - v0) * t) def average(*args): """ returns simple average of list of values """