mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
fix for nameless functors
This commit is contained in:
parent
0ffae72f88
commit
d6a8731988
@ -77,7 +77,7 @@ class FunctionInterval(Interval.Interval):
|
||||
|
||||
@staticmethod
|
||||
def makeUniqueName(func, suffix = ''):
|
||||
name = 'Func-%s-%d' % (func.__name__, FunctionInterval.functionIntervalNum)
|
||||
name = 'Func-%s-%d' % (getattr(func, '__name__', str(func)), FunctionInterval.functionIntervalNum)
|
||||
FunctionInterval.functionIntervalNum += 1
|
||||
if suffix:
|
||||
name = '%s-%s' % (name, str(suffix))
|
||||
|
Loading…
x
Reference in New Issue
Block a user