mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -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).
|
||||
|
||||
cb = Loader.Callback(len(modelList), callback, extraArgs)
|
||||
i=0
|
||||
for modelPath in modelList:
|
||||
request = ModelLoadRequest(Filename(modelPath), loaderOptions)
|
||||
request.setDoneEvent(self.hook)
|
||||
request.setPythonObject((cb, i))
|
||||
i+=1
|
||||
self.loader.loadAsync(request)
|
||||
|
||||
def loadModelOnce(self, modelPath):
|
||||
|
Loading…
x
Reference in New Issue
Block a user