diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-15 18:14:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-15 18:14:15 +0400 |
commit | 20a37ba8f87f2d68a509f75c87bcdf61cb607278 (patch) | |
tree | acf36a14ab5dcdb192f672fe390682e069c466f4 /release | |
parent | 6fed4fdd5eb92099f36212b5e71b4298e36ca582 (diff) |
fix [#30956] Unwrapping, Lightmap Pack broken
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_operators/uvcalc_lightmap.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_operators/uvcalc_lightmap.py b/release/scripts/startup/bl_operators/uvcalc_lightmap.py index 08f471e9022..9e1ebbac806 100644 --- a/release/scripts/startup/bl_operators/uvcalc_lightmap.py +++ b/release/scripts/startup/bl_operators/uvcalc_lightmap.py @@ -89,7 +89,7 @@ class prettyface(object): else: # blender face uv_layer = data.id_data.uv_loop_layers.active.data - self.uv = [uv_layer[i].uv for i in data.loops] + self.uv = [uv_layer[i].uv for i in data.loop_indices] # cos = [v.co for v in data] cos = [data.id_data.vertices[v].co for v in data.vertices] # XXX25 @@ -245,7 +245,7 @@ def lightmap_uvpack(meshes, print("\tWarning, less then 4 faces, skipping") continue - pretty_faces = [prettyface(f) for f in face_sel if len(f.vertices) == 4] + pretty_faces = [prettyface(f) for f in face_sel if f.loop_total == 4] # Do we have any triangles? if len(pretty_faces) != len(face_sel): @@ -269,7 +269,7 @@ def lightmap_uvpack(meshes, return f, lens, lens_order - tri_lengths = [trylens(f) for f in face_sel if len(f.vertices) == 3] + tri_lengths = [trylens(f) for f in face_sel if f.loop_total == 3] del trylens def trilensdiff(t1, t2): |