Browse Source

printing name of function in Func intervals

Josh Wilson 17 years ago
parent
commit
cf80c1f689
1 changed files with 3 additions and 2 deletions
  1. 3 2
      direct/src/interval/LerpInterval.py

+ 3 - 2
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