diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-18 07:42:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-18 07:42:53 +0400 |
commit | 5027ccba53daff62acb356afc55fa8f1f7718ab0 (patch) | |
tree | 09b01c6e71c82431293ce8e81970018614bbed23 /io_import_scene_unreal_psk.py | |
parent | d08ba14bd217376d868d44ab281c789ae92aece5 (diff) |
updates for changes in blenders api
Diffstat (limited to 'io_import_scene_unreal_psk.py')
-rw-r--r-- | io_import_scene_unreal_psk.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/io_import_scene_unreal_psk.py b/io_import_scene_unreal_psk.py index 47145e1f..e1080d41 100644 --- a/io_import_scene_unreal_psk.py +++ b/io_import_scene_unreal_psk.py @@ -183,7 +183,7 @@ def pskimport(infile): indata = unpack('3f',pskfile.read(12)) #print(indata[0],indata[1],indata[2]) verts.extend([(indata[0],indata[1],indata[2])]) - #Tmsh.verts.append(NMesh.Vert(indata[0],indata[1],indata[2])) + #Tmsh.vertices.append(NMesh.Vert(indata[0],indata[1],indata[2])) #================================================================================================== # UV @@ -486,9 +486,9 @@ def pskimport(infile): #================================================================================================== print("vertex:",len(verts),"faces:",len(faces)) me_ob.add_geometry(len(verts), 0, int(len(faces)/4)) - me_ob.verts.foreach_set("co", unpack_list(verts)) + me_ob.vertices.foreach_set("co", unpack_list(verts)) - me_ob.faces.foreach_set("verts_raw", faces) + me_ob.faces.foreach_set("vertices_raw", faces) me_ob.faces.foreach_set("smooth", [False] * len(me_ob.faces)) me_ob.update() |