From b9a2b0648d13b232f8a47d85352f1ccdacdd2ffa Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Tue, 26 Sep 2006 22:50:12 +0000 Subject: [PATCH] lerp operator order switched --- direct/src/showbase/PythonUtil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 """