Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-08-18 07:42:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-18 07:42:53 +0400
commit5027ccba53daff62acb356afc55fa8f1f7718ab0 (patch)
tree09b01c6e71c82431293ce8e81970018614bbed23 /io_mesh_raw
parentd08ba14bd217376d868d44ab281c789ae92aece5 (diff)
updates for changes in blenders api
Diffstat (limited to 'io_mesh_raw')
-rw-r--r--io_mesh_raw/export_raw.py4
-rw-r--r--io_mesh_raw/import_raw.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/io_mesh_raw/export_raw.py b/io_mesh_raw/export_raw.py
index 323f84f6..ac5933f6 100644
--- a/io_mesh_raw/export_raw.py
+++ b/io_mesh_raw/export_raw.py
@@ -49,8 +49,8 @@ def faceToTriangles(face):
def faceValues(face, mesh, matrix):
fv = []
- for verti in face.verts_raw:
- fv.append(matrix * mesh.verts[verti].co)
+ for verti in face.vertices_raw:
+ fv.append(matrix * mesh.vertices[verti].co)
return fv
diff --git a/io_mesh_raw/import_raw.py b/io_mesh_raw/import_raw.py
index 6a9b3eb7..e8a7a4a7 100644
--- a/io_mesh_raw/import_raw.py
+++ b/io_mesh_raw/import_raw.py
@@ -91,8 +91,8 @@ def readMesh(filename, objName):
mesh = bpy.data.meshes.new(objName)
mesh.add_geometry(int(len(verts)), 0, int(len(faces)))
- mesh.verts.foreach_set("co", unpack_list(verts))
- mesh.faces.foreach_set("verts_raw", unpack_face_list(faces))
+ mesh.vertices.foreach_set("co", unpack_list(verts))
+ mesh.faces.foreach_set("vertices_raw", unpack_face_list(faces))
return mesh