properties to annotations

pull/34/head
lendo 2020-06-08 21:47:20 +02:00
rodzic 8c9b0b9d95
commit f88f67ec69
1 zmienionych plików z 11 dodań i 11 usunięć

Wyświetl plik

@ -27,17 +27,17 @@ class GenerateSpaceship(Operator):
bl_label = "Spaceship" bl_label = "Spaceship"
bl_options = {'REGISTER', 'UNDO'} bl_options = {'REGISTER', 'UNDO'}
random_seed = StringProperty(default='', name='Seed') random_seed : StringProperty(default='', name='Seed')
num_hull_segments_min = IntProperty (default=3, min=0, soft_max=16, name='Min. Hull Segments') num_hull_segments_min : IntProperty (default=3, min=0, soft_max=16, name='Min. Hull Segments')
num_hull_segments_max = IntProperty (default=6, min=0, soft_max=16, name='Max. Hull Segments') num_hull_segments_max : IntProperty (default=6, min=0, soft_max=16, name='Max. Hull Segments')
create_asymmetry_segments = BoolProperty(default=True, name='Create Asymmetry Segments') create_asymmetry_segments : BoolProperty(default=True, name='Create Asymmetry Segments')
num_asymmetry_segments_min = IntProperty (default=1, min=1, soft_max=16, name='Min. Asymmetry Segments') num_asymmetry_segments_min : IntProperty (default=1, min=1, soft_max=16, name='Min. Asymmetry Segments')
num_asymmetry_segments_max = IntProperty (default=5, min=1, soft_max=16, name='Max. Asymmetry Segments') num_asymmetry_segments_max : IntProperty (default=5, min=1, soft_max=16, name='Max. Asymmetry Segments')
create_face_detail = BoolProperty(default=True, name='Create Face Detail') create_face_detail : BoolProperty(default=True, name='Create Face Detail')
allow_horizontal_symmetry = BoolProperty(default=True, name='Allow Horizontal Symmetry') allow_horizontal_symmetry : BoolProperty(default=True, name='Allow Horizontal Symmetry')
allow_vertical_symmetry = BoolProperty(default=False, name='Allow Vertical Symmetry') allow_vertical_symmetry : BoolProperty(default=False, name='Allow Vertical Symmetry')
apply_bevel_modifier = BoolProperty(default=True, name='Apply Bevel Modifier') apply_bevel_modifier : BoolProperty(default=True, name='Apply Bevel Modifier')
assign_materials = BoolProperty(default=True, name='Assign Materials') assign_materials : BoolProperty(default=True, name='Assign Materials')
def execute(self, context): def execute(self, context):
spaceship_generator.generate_spaceship( spaceship_generator.generate_spaceship(