From 39f2f997943430249a3cb753cb7c2bebfa1ed0f7 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Tue, 22 May 2012 15:19:19 +0000 Subject: [PATCH] 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 --- doc/python_api/rst/include__bmesh.rst | 4 ++-- 1 file 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))