mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
bpdb - bpGroup takes optional static parameter which will return a staticmethod rather than a normal function
This commit is contained in:
parent
54e72e860b
commit
259b3396a6
@ -4418,9 +4418,14 @@ class BpDb:
|
||||
argsCopy = args[:]
|
||||
def functor(*cArgs, **ckArgs):
|
||||
ckArgs.update(kArgs)
|
||||
ckArgs.pop('static', None)
|
||||
ckArgs['frameCount'] = ckArgs.get('frameCount',1)+1
|
||||
return bpdb.bp(*(cArgs), **ckArgs)
|
||||
return functor
|
||||
|
||||
if kArgs.get('static'):
|
||||
return staticmethod(functor)
|
||||
else:
|
||||
return functor
|
||||
|
||||
|
||||
class bp:
|
||||
|
Loading…
x
Reference in New Issue
Block a user