diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-07-18 12:44:51 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-07-18 12:44:51 +0300 |
commit | 6533d72056d1a0df85e05650f74885ae7e7d35a5 (patch) | |
tree | b384ca0e13d361fd3fa113612bf30c3b1c37545f /release | |
parent | d42cb44ea25edf5f47cfd2465a03d491d420f679 (diff) |
Fix T48877: Lightmap Pack fails w/ 1-3 faces
Unnecessary limit was applied.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_operators/uvcalc_lightmap.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/uvcalc_lightmap.py b/release/scripts/startup/bl_operators/uvcalc_lightmap.py index a120e2b2461..3b095c883a3 100644 --- a/release/scripts/startup/bl_operators/uvcalc_lightmap.py +++ b/release/scripts/startup/bl_operators/uvcalc_lightmap.py @@ -285,8 +285,7 @@ def lightmap_uvpack(meshes, for face_sel in face_groups: print("\nStarting unwrap") - if len(face_sel) < 4: - print("\tWarning, less then 4 faces, skipping") + if not face_sel: continue pretty_faces = [prettyface(f) for f in face_sel if f.loop_total >= 4] |