diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-21 02:58:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-21 02:58:00 +0400 |
commit | 71146bf93babf8c8fab8faa06f6cf7f9191acb10 (patch) | |
tree | b17a9b39e61fcf49b3e2cac426e6bf70117e5f48 /release/scripts/modules/bpy_extras | |
parent | 6d3cdbe0e502ca51669bf0b686af79101791a2a1 (diff) |
copy over a change from bmesh branch that was needed for lightmap unpack to work, also tag some rna vars as unused.
Diffstat (limited to 'release/scripts/modules/bpy_extras')
-rw-r--r-- | release/scripts/modules/bpy_extras/mesh_utils.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/release/scripts/modules/bpy_extras/mesh_utils.py b/release/scripts/modules/bpy_extras/mesh_utils.py index 601ffae4796..e93036ee9bb 100644 --- a/release/scripts/modules/bpy_extras/mesh_utils.py +++ b/release/scripts/modules/bpy_extras/mesh_utils.py @@ -140,8 +140,7 @@ def edge_loops_from_faces(mesh, faces=None, seams=()): edges = {} for f in faces: -# if len(f) == 4: - if f.vertices_raw[3] != 0: + if len(f.vertices) == 4: edge_keys = f.edge_keys for i, edkey in enumerate(f.edge_keys): edges.setdefault(edkey, []).append(edge_keys[OTHER_INDEX[i]]) |