From cf80c1f68990880a75a7a38afdd2c3aa24be60f6 Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Fri, 24 Oct 2008 22:53:05 +0000 Subject: [PATCH] printing name of function in Func intervals --- direct/src/interval/LerpInterval.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/direct/src/interval/LerpInterval.py b/direct/src/interval/LerpInterval.py index 652ff0420e..7816dfd142 100644 --- a/direct/src/interval/LerpInterval.py +++ b/direct/src/interval/LerpInterval.py @@ -802,8 +802,9 @@ class LerpFunctionInterval(Interval.Interval): self.extraArgs = extraArgs # Generate unique name if necessary if (name == None): - name = ('LerpFunctionInterval-%d' % - LerpFunctionInterval.lerpFunctionIntervalNum) + name = ('LerpFunctionInterval-%s-%d' % + (function.__name__, + LerpFunctionInterval.lerpFunctionIntervalNum)) LerpFunctionInterval.lerpFunctionIntervalNum += 1 else: # Allow the user to pass in a %d in the name and we'll go ahead