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):
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 )
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+
18def 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
714def 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 )
You can’t perform that action at this time.
0 commit comments