Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolaus Leopold <nikolaus.leopold@gmail.com>2014-11-10 14:48:11 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2014-11-10 14:48:11 +0300
commit95a71fb815641a6b55c8d796c0106d1a159fd125 (patch)
tree47b1b4ea4ca3b359dd8d2a98ef31f6edaa1c1800 /add_curve_sapling/__init__.py
parentfba637f3162f91c57525b1c3cc9438ad1eb463fe (diff)
Final fix for 'division by zero' issues in sapling addon.
Review and minor cleanup by Bastien Montagne (mont29). Note: this addon would need a full complete style cleanup. :/ Differential Revision: D874
Diffstat (limited to 'add_curve_sapling/__init__.py')
-rw-r--r--add_curve_sapling/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/add_curve_sapling/__init__.py b/add_curve_sapling/__init__.py
index b27dd6a9..719675ed 100644
--- a/add_curve_sapling/__init__.py
+++ b/add_curve_sapling/__init__.py
@@ -195,7 +195,7 @@ class AddTree(bpy.types.Operator):
default=3, update=update_tree)
length = FloatVectorProperty(name='Length',
description='The relative lengths of each branch level (nLength)',
- min=0.000001,
+ min=1e-6,
default=[1, 0.3, 0.6, 0.45],
size=4, update=update_tree)
lengthV = FloatVectorProperty(name='Length Variation',
@@ -258,7 +258,7 @@ class AddTree(bpy.types.Operator):
default='7', update=update_tree)
baseSize = FloatProperty(name='Base Size',
description='Fraction of tree height with no branches (BaseSize)',
- min=0.0,
+ min=0.001,
max=1.0,
default=0.4, update=update_tree)
ratio = FloatProperty(name='Ratio',