File tree Expand file tree Collapse file tree 3 files changed +306
-13
lines changed Expand file tree Collapse file tree 3 files changed +306
-13
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ def draw(self, context):
199
199
box .prop (mtree_props , 'split_proba' )
200
200
box .prop (mtree_props , 'split_angle' )
201
201
box .prop (mtree_props , 'radius_dec' )
202
+ box .prop (mtree_props , 'branch_min_radius' )
202
203
col = box .column (align = True )
203
204
col .prop (mtree_props , 'branch_rotate' )
204
205
col .prop (mtree_props , 'branch_random_rotate' )
@@ -495,6 +496,12 @@ class ModularTreePropertyGroup(PropertyGroup):
495
496
max = 360 ,
496
497
description = "randomize the rotation of branches angle" )
497
498
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
+
498
505
particle = BoolProperty (
499
506
name = "Configure Particle System" ,
500
507
default = False )
Original file line number Diff line number Diff line change
1
+ import os
2
+
3
+
4
+ def get_file ():
5
+ return os .path .join (os .path .dirname (__file__ ), "addon_name.txt" )
6
+
7
+
1
8
def get_addon_name ():
2
- with open ("addon_name.txt" , 'r' ) as f :
9
+ with open (get_file () , 'r' ) as f :
3
10
name = f .read ().strip ()
4
11
return name
5
12
6
13
7
14
def save_addon_name (name ):
8
- with open ("addon_name.txt" , 'w' ) as f :
15
+ with open (get_file () , 'w' ) as f :
9
16
print (name , file = f )
You can’t perform that action at this time.
0 commit comments