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>2008-05-23 12:39:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-05-23 12:39:59 +0400
commit99f43e0b0731139cef7a1ac135df1d1988a40a46 (patch)
tree07750e36dd5d85594ce480b46a63b607f06ad16e
parentb4573a0c4bf3b707b2c4552bcb36f555aa0c2ba1 (diff)
fix for error when all faces are the same area
-rw-r--r--release/scripts/uvcalc_lightmap.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/uvcalc_lightmap.py b/release/scripts/uvcalc_lightmap.py
index 8cd4960f518..5f9f88a241d 100644
--- a/release/scripts/uvcalc_lightmap.py
+++ b/release/scripts/uvcalc_lightmap.py
@@ -328,6 +328,9 @@ PREF_MARGIN_DIV= 512):
if curr_len/4 < side_len/PREF_MARGIN_DIV:
break
+ if not lengths:
+ lengths.append(curr_len)
+
# convert into ints
lengths_to_ints = {}