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-10-21 04:21:02 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-10-21 04:21:02 +0400
commitff2fcdf34edb85c7c891a9d3dc99f92a98bde4aa (patch)
treec561e37196a14c3001c4e0587a69ce6125bbb524 /release/scripts/wizard_curve2tree.py
parentbc55102eac2ac0dfba8f32530ac674213aedc477 (diff)
py 2.3 compat for lightwave_import and wizard_curve2tree
Diffstat (limited to 'release/scripts/wizard_curve2tree.py')
-rw-r--r--release/scripts/wizard_curve2tree.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/wizard_curve2tree.py b/release/scripts/wizard_curve2tree.py
index eb27f1ca0f5..84b2cc76132 100644
--- a/release/scripts/wizard_curve2tree.py
+++ b/release/scripts/wizard_curve2tree.py
@@ -266,7 +266,9 @@ class tree:
brch.calcData()
# Sort from big to small, so big branches get priority
- self.branches_all.sort( key = lambda brch: -brch.bpoints[0].radius )
+ # Py 2.3 dosnt have keywords in sort
+ try: self.branches_all.sort( key = lambda brch: -brch.bpoints[0].radius )
+ except: self.branches_all.sort( lambda brch_a, brch_b: cmp(brch_b.bpoints[0].radius, brch_a.bpoints[0].radius) )
def closestBranchPt(self, co):