diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-27 03:31:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-27 03:31:22 +0400 |
commit | d7752e1b50740a81f1196063ee3466be0f2b5150 (patch) | |
tree | f4ded7c5c3f80d5878745ae4881b59b630e8153b /io_import_scene_unreal_psk.py | |
parent | 8d941d5a9d675a9a4ef7700f69a2b59efd6bf7b2 (diff) |
update for rna api changes
Diffstat (limited to 'io_import_scene_unreal_psk.py')
-rw-r--r-- | io_import_scene_unreal_psk.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/io_import_scene_unreal_psk.py b/io_import_scene_unreal_psk.py index 7e3a035d..6a04955a 100644 --- a/io_import_scene_unreal_psk.py +++ b/io_import_scene_unreal_psk.py @@ -485,7 +485,9 @@ def pskimport(infile): #Building Mesh #================================================================================================== print("vertex:",len(verts),"faces:",len(faces)) - me_ob.add_geometry(len(verts), 0, int(len(faces)/4)) + me_ob.vertices.add(len(verts)) + me_ob.faces.add(len(faces)//4) + me_ob.vertices.foreach_set("co", unpack_list(verts)) me_ob.faces.foreach_set("vertices_raw", faces) @@ -535,7 +537,7 @@ def pskimport(infile): #= make sure the list isnt too big for material in materials: #add material to the mesh list of materials - me_ob.add_material(material) + me_ob.materials.link(material) #=================================================================================================== # #=================================================================================================== |