Fix T48877: Lightmap Pack fails w/ 1-3 faces

Unnecessary limit was applied.
This commit is contained in:
Campbell Barton 2016-07-18 19:44:51 +10:00
parent d42cb44ea2
commit 6533d72056
Notes: blender-bot 2023-02-14 08:38:11 +01:00
Referenced by issue #48877, UV unwrap > Lightmap Pack with 2 or 3 faces produces invalid UV map
1 changed files with 1 additions and 2 deletions

View File

@ -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]