[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46887] trunk/blender/doc/python_api/rst/ include__bmesh.rst: fix for bmesh api example
Dalai Felinto
dfelinto at gmail.com
Tue May 22 17:19:19 CEST 2012
Revision: 46887
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46887
Author: dfelinto
Date: 2012-05-22 15:19:19 +0000 (Tue, 22 May 2012)
Log Message:
-----------
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
Modified Paths:
--------------
trunk/blender/doc/python_api/rst/include__bmesh.rst
Modified: trunk/blender/doc/python_api/rst/include__bmesh.rst
===================================================================
--- trunk/blender/doc/python_api/rst/include__bmesh.rst 2012-05-22 15:19:13 UTC (rev 46886)
+++ trunk/blender/doc/python_api/rst/include__bmesh.rst 2012-05-22 15:19:19 UTC (rev 46887)
@@ -99,8 +99,8 @@
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))
More information about the Bf-blender-cvs
mailing list