fix for error when all faces are the same area
authorCampbell Barton <ideasman42@gmail.com>
Fri, 23 May 2008 08:39:59 +0000 (08:39 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 23 May 2008 08:39:59 +0000 (08:39 +0000)
release/scripts/uvcalc_lightmap.py

index 8cd4960f518e84c67f1bbb8faa78e862bfa2e646..5f9f88a241de1d798da1d860ed44a6a42cc773cb 100644 (file)
@@ -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 = {}