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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-03-21 18:13:54 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-03-21 18:13:54 +0400
commitc3e37cf15fd685496acde0d46781340def98a5a2 (patch)
tree2c8d75a1c2edeb611cb80c746de7a5ea3c4b4550 /doc
parentb06f238bb0e8a6526094e3ccf170fdae2a8b72df (diff)
Fix #30622: 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.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/python_api/rst/bge.types.rst b/doc/python_api/rst/bge.types.rst
index fda05bb6ed5..bcef816dc9d 100644
--- a/doc/python_api/rst/bge.types.rst
+++ b/doc/python_api/rst/bge.types.rst
@@ -1807,7 +1807,7 @@ Game Types (bge.types)
for mesh in object.meshes:
for m_index in range(len(mesh.materials)):
- for v_index in range(mesh.getVertexArrayLength(mat)):
+ for v_index in range(mesh.getVertexArrayLength(m_index)):
vertex = mesh.getVertex(m_index, v_index)
# Do something with vertex here...
# ... eg: colour the vertex red.