Fixes parameters to pyassimp.load
Commit 704e57db4e
changed the order
of the parameters to `pyassimp.load`. The new order groups
`filename` and `file_type` which is preferable, but the samples and
other calls to `load` still point to the old order. This fixes that
with named arguments where necessary.
pull/1318/head
parent
afb2f3036e
commit
c6d888531b
|
@ -679,7 +679,7 @@ class PyAssimp3DViewer:
|
|||
logger.info("Loading model:" + path + "...")
|
||||
|
||||
if postprocess:
|
||||
self.scene = pyassimp.load(path, postprocess)
|
||||
self.scene = pyassimp.load(path, processing=postprocess)
|
||||
else:
|
||||
self.scene = pyassimp.load(path)
|
||||
logger.info("Done.")
|
||||
|
|
|
@ -98,7 +98,7 @@ class GLRenderer():
|
|||
logger.info("Loading model:" + path + "...")
|
||||
|
||||
if postprocess:
|
||||
self.scene = pyassimp.load(path, postprocess)
|
||||
self.scene = pyassimp.load(path, processing=postprocess)
|
||||
else:
|
||||
self.scene = pyassimp.load(path)
|
||||
logger.info("Done.")
|
||||
|
|
|
@ -20,7 +20,7 @@ def recur_node(node,level = 0):
|
|||
|
||||
def main(filename=None):
|
||||
|
||||
scene = pyassimp.load(filename, pyassimp.postprocess.aiProcess_Triangulate)
|
||||
scene = pyassimp.load(filename, processing=pyassimp.postprocess.aiProcess_Triangulate)
|
||||
|
||||
#the model we load
|
||||
print("MODEL:" + filename)
|
||||
|
|
Loading…
Reference in New Issue