diff options
Diffstat (limited to 'release/scripts/bpymodules/boxpack2d.py')
-rw-r--r-- | release/scripts/bpymodules/boxpack2d.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/bpymodules/boxpack2d.py b/release/scripts/bpymodules/boxpack2d.py index 114b4883d49..2268b9154dc 100644 --- a/release/scripts/bpymodules/boxpack2d.py +++ b/release/scripts/bpymodules/boxpack2d.py @@ -64,7 +64,9 @@ class vertList: Lambada based sort ''' # self.verts.sort(lambda A, B: cmp(max(A.x+w, A.y+h) , max(B.x+w, B.y+h))) # Reverse area sort - self.verts.sort(key = lambda b: max(b.x+w, b.y+h) ) # Reverse area sort + try: self.verts.sort(key = lambda b: max(b.x+w, b.y+h) ) # Reverse area sort + except: self.verts.sort(lambda A, B: cmp(max(A.x+w, A.y+h) , max(B.x+w, B.y+h))) # Reverse area sort + class box: |