Skip to content

Commit 6ec951f

Browse files
authored
Merge pull request #107 from MaximeHerpin/hotfix-2.7.1
Hotfix 2.7.1
2 parents ab1791c + c32bd86 commit 6ec951f

File tree

3 files changed

+306
-13
lines changed

3 files changed

+306
-13
lines changed

__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ def draw(self, context):
199199
box.prop(mtree_props, 'split_proba')
200200
box.prop(mtree_props, 'split_angle')
201201
box.prop(mtree_props, 'radius_dec')
202+
box.prop(mtree_props, 'branch_min_radius')
202203
col = box.column(align=True)
203204
col.prop(mtree_props, 'branch_rotate')
204205
col.prop(mtree_props, 'branch_random_rotate')
@@ -495,6 +496,12 @@ class ModularTreePropertyGroup(PropertyGroup):
495496
max=360,
496497
description="randomize the rotation of branches angle")
497498

499+
branch_min_radius = FloatProperty(
500+
name = "Branches minimum radius",
501+
default = .04,
502+
min = 0,
503+
description = "radius at which a branch breaks for being to small")
504+
498505
particle = BoolProperty(
499506
name="Configure Particle System",
500507
default=False)

addon_name.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1+
import os
2+
3+
4+
def get_file():
5+
return os.path.join(os.path.dirname(__file__), "addon_name.txt")
6+
7+
18
def get_addon_name():
2-
with open("addon_name.txt", 'r') as f:
9+
with open(get_file(), 'r') as f:
310
name = f.read().strip()
411
return name
512

613

714
def save_addon_name(name):
8-
with open("addon_name.txt", 'w') as f:
15+
with open(get_file(), 'w') as f:
916
print(name, file=f)

0 commit comments

Comments
 (0)