浏览代码

Merge pull request #1318 from rspencer01/master

Fixes parameters to pyassimp.load
Kim Kulling 8 年之前
父节点
当前提交
3bf8c9dcf4

+ 1 - 1
port/PyAssimp/scripts/3d_viewer.py

@@ -679,7 +679,7 @@ class PyAssimp3DViewer:
         logger.info("Loading model:" + path + "...")
         logger.info("Loading model:" + path + "...")
 
 
         if postprocess:
         if postprocess:
-            self.scene = pyassimp.load(path, postprocess)
+            self.scene = pyassimp.load(path, processing=postprocess)
         else:
         else:
             self.scene = pyassimp.load(path)
             self.scene = pyassimp.load(path)
         logger.info("Done.")
         logger.info("Done.")

+ 1 - 1
port/PyAssimp/scripts/fixed_pipeline_3d_viewer.py

@@ -98,7 +98,7 @@ class GLRenderer():
         logger.info("Loading model:" + path + "...")
         logger.info("Loading model:" + path + "...")
 
 
         if postprocess:
         if postprocess:
-            self.scene = pyassimp.load(path, postprocess)
+            self.scene = pyassimp.load(path, processing=postprocess)
         else:
         else:
             self.scene = pyassimp.load(path)
             self.scene = pyassimp.load(path)
         logger.info("Done.")
         logger.info("Done.")

+ 1 - 1
port/PyAssimp/scripts/sample.py

@@ -20,7 +20,7 @@ def recur_node(node,level = 0):
 
 
 def main(filename=None):
 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
     #the model we load
     print("MODEL:" + filename)
     print("MODEL:" + filename)