mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 07:03:36 -04:00
parent
237d27dfd9
commit
a50b9d83aa
@ -821,9 +821,13 @@ class LerpFunctionInterval(Interval.Interval):
|
||||
self.blendType = LerpBlendHelpers.getBlend(blendType)
|
||||
self.extraArgs = extraArgs
|
||||
# Generate unique name if necessary
|
||||
if (name == None):
|
||||
if name is None:
|
||||
if hasattr(function, '__name__'):
|
||||
name = function.__name__
|
||||
else:
|
||||
name = '<' + function.__class__.__name__ + '>'
|
||||
name = ('LerpFunctionInterval-%s-%d' %
|
||||
(function.__name__,
|
||||
(name,
|
||||
LerpFunctionInterval.lerpFunctionIntervalNum))
|
||||
LerpFunctionInterval.lerpFunctionIntervalNum += 1
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user