mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
fix for nameless functors
This commit is contained in:
parent
0ffae72f88
commit
d6a8731988
@ -77,7 +77,7 @@ class FunctionInterval(Interval.Interval):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def makeUniqueName(func, suffix = ''):
|
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
|
FunctionInterval.functionIntervalNum += 1
|
||||||
if suffix:
|
if suffix:
|
||||||
name = '%s-%s' % (name, str(suffix))
|
name = '%s-%s' % (name, str(suffix))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user