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…
Reference in New Issue