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:
authorDalai Felinto <dfelinto@gmail.com>2012-05-22 19:19:19 +0400
committerDalai Felinto <dfelinto@gmail.com>2012-05-22 19:19:19 +0400
commit39f2f997943430249a3cb753cb7c2bebfa1ed0f7 (patch)
tree9981357e3aaad3264fa18d54992535e6555acad3 /doc
parentd9ce31104f974509a4626c77b3f35342576f05ca (diff)
fix for bmesh api example
worth noticing is that the example in bpy.types.Mesh is wrong too (Mesh type does not have an uv element) but I would prefer someone more familiar with bmesh to take a look at those
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/rst/include__bmesh.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/python_api/rst/include__bmesh.rst b/doc/python_api/rst/include__bmesh.rst
index 212ab4e4708..f3d3b0257be 100644
--- a/doc/python_api/rst/include__bmesh.rst
+++ b/doc/python_api/rst/include__bmesh.rst
@@ -99,8 +99,8 @@ Here are some examples ...
uv_lay = bm.loops.layers.uv.active
for face in bm.faces:
- for loop in f.loops:
- uv = loop[uv_lay]
+ for loop in face.loops:
+ uv = loop[uv_lay].uv
print("Loop UV: %f, %f" % (uv.x, uv.y))