diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-02-28 13:03:34 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-02-28 13:03:34 +0300 |
commit | 4110b333b15014c19e5e343e3bd4e5370df3b48e (patch) | |
tree | 85a8050ad3822fd793ca73483edb028a10923c3e /add_curve_sapling/utils.py | |
parent | 2e3875ef54f16a68840da79c70cc2225a1774f1d (diff) |
Fix T43837: Can't change amount of leaves.
Leaves settings were simply never used (broken logic, dead branch code)...
Diffstat (limited to 'add_curve_sapling/utils.py')
-rw-r--r-- | add_curve_sapling/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/add_curve_sapling/utils.py b/add_curve_sapling/utils.py index b7740723..c3bcbe7a 100644 --- a/add_curve_sapling/utils.py +++ b/add_curve_sapling/utils.py @@ -586,7 +586,7 @@ def fabricate_stems(addsplinetobone, addstem, baseSize, branches, childP, cu, cu tempPos.rotate(rotMat) tempPos.rotate(p.quat) newPoint.handle_right = p.co + tempPos - if (storeN >= levels): + if (storeN == levels - 1): # If this is the last level before leaves then we need to generate the child points differently branchL = (length[n] + uniform(-lengthV[n], lengthV[n])) * (p.lengthPar - 0.6 * p.offset) if leaves < 0: |