printing name of function in Func intervals

This commit is contained in:
Josh Wilson 2008-10-24 22:53:05 +00:00
parent ff36d3e428
commit cf80c1f689

View File

@ -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