mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
oops, loader typo
This commit is contained in:
parent
4689f86821
commit
32bc2dfe11
@ -137,10 +137,12 @@ class Loader(DirectObject):
|
|||||||
# callback (passing it the models on the parameter list).
|
# callback (passing it the models on the parameter list).
|
||||||
|
|
||||||
cb = Loader.Callback(len(modelList), callback, extraArgs)
|
cb = Loader.Callback(len(modelList), callback, extraArgs)
|
||||||
|
i=0
|
||||||
for modelPath in modelList:
|
for modelPath in modelList:
|
||||||
request = ModelLoadRequest(Filename(modelPath), loaderOptions)
|
request = ModelLoadRequest(Filename(modelPath), loaderOptions)
|
||||||
request.setDoneEvent(self.hook)
|
request.setDoneEvent(self.hook)
|
||||||
request.setPythonObject((cb, i))
|
request.setPythonObject((cb, i))
|
||||||
|
i+=1
|
||||||
self.loader.loadAsync(request)
|
self.loader.loadAsync(request)
|
||||||
|
|
||||||
def loadModelOnce(self, modelPath):
|
def loadModelOnce(self, modelPath):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user