mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix #30524: documentation example code for bge.types.KX_MeshProxy did not work,
using fix suggested by Ryan King.
This commit is contained in:
parent
50af47a67f
commit
74b7bc1228
1 changed files with 2 additions and 2 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue