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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-03-12 17:04:06 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-03-12 17:04:06 +0400
commit74b7bc1228b502c1fec88e1399601144d7bd34f2 (patch)
treec319b1f76a94ed93fc6febbf0c579dae21ff7471 /doc
parent50af47a67fe9df08598d874d56b1f62b9d386584 (diff)
Fix #30524: documentation example code for bge.types.KX_MeshProxy did not work,
using fix suggested by Ryan King.
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/rst/bge.types.rst4
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]