oops, loader typo

This commit is contained in:
Zachary Pavlov 2006-10-25 22:43:10 +00:00
parent 4689f86821
commit 32bc2dfe11

View File

@ -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):