mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
added getRepository builtin
This commit is contained in:
parent
fe4f03c868
commit
c19665e627
@ -31,7 +31,7 @@ __all__ = ['enumerate', 'unique', 'indent', 'nonRepeatingRandomList',
|
|||||||
'printStack', 'printReverseStack', 'listToIndex2item', 'listToItem2index',
|
'printStack', 'printReverseStack', 'listToIndex2item', 'listToItem2index',
|
||||||
'pandaBreak','pandaTrace','formatTimeCompact','DestructiveScratchPad',
|
'pandaBreak','pandaTrace','formatTimeCompact','DestructiveScratchPad',
|
||||||
'deeptype','getProfileResultString','StdoutCapture','StdoutPassthrough',
|
'deeptype','getProfileResultString','StdoutCapture','StdoutPassthrough',
|
||||||
'Averager',]
|
'Averager', 'getRepository', ]
|
||||||
|
|
||||||
import types
|
import types
|
||||||
import string
|
import string
|
||||||
@ -3188,6 +3188,12 @@ def getBase():
|
|||||||
except:
|
except:
|
||||||
return simbase
|
return simbase
|
||||||
|
|
||||||
|
def getRepository():
|
||||||
|
try:
|
||||||
|
return base.cr
|
||||||
|
except:
|
||||||
|
return simbase.air
|
||||||
|
|
||||||
def superFlattenShip(ship):
|
def superFlattenShip(ship):
|
||||||
|
|
||||||
#PHASE 1: remove characters
|
#PHASE 1: remove characters
|
||||||
@ -3781,6 +3787,7 @@ __builtin__.ClassTree = ClassTree
|
|||||||
__builtin__.invertDict = invertDict
|
__builtin__.invertDict = invertDict
|
||||||
__builtin__.invertDictLossless = invertDictLossless
|
__builtin__.invertDictLossless = invertDictLossless
|
||||||
__builtin__.getBase = getBase
|
__builtin__.getBase = getBase
|
||||||
|
__builtin__.getRepository = getRepository
|
||||||
__builtin__.safeRepr = safeRepr
|
__builtin__.safeRepr = safeRepr
|
||||||
__builtin__.fastRepr = fastRepr
|
__builtin__.fastRepr = fastRepr
|
||||||
__builtin__.nullGen = nullGen
|
__builtin__.nullGen = nullGen
|
||||||
|
Loading…
x
Reference in New Issue
Block a user