rename Mesh.uv_loop_layers --> uv_layers

add filtering for document generator to support --partial bpy.types.SomeType
This commit is contained in:
Campbell Barton
2012-04-22 23:51:50 +00:00
parent a164aa1ab6
commit 1642e2888c
10 changed files with 64 additions and 52 deletions

View File

@@ -489,7 +489,7 @@ class JoinUVs(Operator):
# seems to be the fastest way to create an array
uv_array = array.array('f', [0.0] * 2) * nbr_loops
mesh.uv_loop_layers.active.data.foreach_get("uv", uv_array)
mesh.uv_layers.active.data.foreach_get("uv", uv_array)
objects = context.selected_editable_objects[:]
@@ -516,10 +516,10 @@ class JoinUVs(Operator):
),
)
else:
uv_other = mesh_other.uv_loop_layers.active
uv_other = mesh_other.uv_layers.active
if not uv_other:
mesh_other.uv_textures.new()
uv_other = mesh_other.uv_loop_layers.active
uv_other = mesh_other.uv_layers.active
if not uv_other:
self.report({'ERROR'}, "Could not add "
"a new UV map tp object "