diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-03-26 11:44:56 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-03-26 11:48:40 +0300 |
commit | 4ba0ae05c030f93fbb18f36e6c87f36e1088bab1 (patch) | |
tree | 22d0d56b16e3888ba5f87113a816de3bbd698007 /add_curve_sapling/__init__.py | |
parent | 94aa8ae3a2433f0fe0fcf81ae1b3c98df980bbc8 (diff) |
Fix T44135: Sapling add-on broken in 2.74rc3.
Nothing broken here actually, just missing info (shape needs at least three levels
of branching to take effect).
To be backported to 2.74.
Diffstat (limited to 'add_curve_sapling/__init__.py')
-rw-r--r-- | add_curve_sapling/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/add_curve_sapling/__init__.py b/add_curve_sapling/__init__.py index f36ab551..00225217 100644 --- a/add_curve_sapling/__init__.py +++ b/add_curve_sapling/__init__.py @@ -253,7 +253,7 @@ class AddTree(bpy.types.Operator): description='Branch upward attraction', default=0.0, update=update_tree) shape = EnumProperty(name='Shape', - description='The overall shape of the tree (Shape)', + description='The overall shape of the tree (Shape) - WARNING: at least three "Levels" of branching are needed', items=shapeList, default='7', update=update_tree) baseSize = FloatProperty(name='Base Size', @@ -415,7 +415,9 @@ class AddTree(bpy.types.Operator): row.prop(self, 'resU') box.prop(self, 'handleType') - box.prop(self, 'shape') + sub = box.row() + sub.active = self.levels >= 3 + sub.prop(self, 'shape') box.prop(self, 'seed') box.prop(self, 'ratio') |