Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-07-18 12:44:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-07-18 12:44:51 +0300
commit6533d72056d1a0df85e05650f74885ae7e7d35a5 (patch)
treeb384ca0e13d361fd3fa113612bf30c3b1c37545f /release/scripts/startup/bl_operators/uvcalc_lightmap.py
parentd42cb44ea25edf5f47cfd2465a03d491d420f679 (diff)
Fix T48877: Lightmap Pack fails w/ 1-3 faces
Unnecessary limit was applied.
Diffstat (limited to 'release/scripts/startup/bl_operators/uvcalc_lightmap.py')
-rw-r--r--release/scripts/startup/bl_operators/uvcalc_lightmap.py3
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]