diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-03-12 17:04:06 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-03-12 17:04:06 +0400 |
commit | 74b7bc1228b502c1fec88e1399601144d7bd34f2 (patch) | |
tree | c319b1f76a94ed93fc6febbf0c579dae21ff7471 | |
parent | 50af47a67fe9df08598d874d56b1f62b9d386584 (diff) |
Fix #30524: documentation example code for bge.types.KX_MeshProxy did not work,
using fix suggested by Ryan King.
-rw-r--r-- | doc/python_api/rst/bge.types.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/python_api/rst/bge.types.rst b/doc/python_api/rst/bge.types.rst index 3c15362a4ec..fda05bb6ed5 100644 --- a/doc/python_api/rst/bge.types.rst +++ b/doc/python_api/rst/bge.types.rst @@ -1806,9 +1806,9 @@ Game Types (bge.types) object = cont.owner for mesh in object.meshes: - for material in mesh.materials: + for m_index in range(len(mesh.materials)): for v_index in range(mesh.getVertexArrayLength(mat)): - vertex = mesh.getVertex(mat, v_index) + vertex = mesh.getVertex(m_index, v_index) # Do something with vertex here... # ... eg: colour the vertex red. vertex.colour = [1.0, 0.0, 0.0, 1.0] |