Skip to content

Commit

Permalink
Merge pull request #58 from s-leger/blinds
Browse files Browse the repository at this point in the history
[FEATURE] Add blinds and shutters
  • Loading branch information
s-leger authored Jan 9, 2018
2 parents d140667 + 382a28e commit 395ea41
Show file tree
Hide file tree
Showing 17 changed files with 2,006 additions and 236 deletions.
22 changes: 18 additions & 4 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
'author': 's-leger',
'license': 'GPL',
'deps': '',
'version': (1, 3, 5),
'version': (1, 3, 6),
'blender': (2, 7, 8),
'location': 'View3D > Tools > Create > Archipack',
'warning': '',
'wiki_url': 'https://github.com/s-leger/archipack/wiki',
'wiki_url': 'https://s-leger.github.io/archipack/index.html',
'tracker_url': 'https://github.com/s-leger/archipack/issues',
'link': 'https://github.com/s-leger/archipack',
'support': 'COMMUNITY',
Expand Down Expand Up @@ -63,6 +63,7 @@
imp.reload(archipack_truss)
# imp.reload(archipack_toolkit)
imp.reload(archipack_floor)
imp.reload(archipack_blind)
imp.reload(archipack_rendering)
# imp.reload(archipack_envi)
imp.reload(archipack_io)
Expand All @@ -89,6 +90,7 @@
from . import archipack_truss
# from . import archipack_toolkit
from . import archipack_floor
from . import archipack_blind
from . import archipack_rendering
# from . import archipack_envi
from . import archipack_io
Expand Down Expand Up @@ -596,7 +598,13 @@ def draw(self, context):
row.operator("archipack.floor_preset_menu",
text="",
icon='CURVE_DATA').preset_operator = "archipack.floor_from_curve"

row = box.row(align=True)
row.operator("archipack.blind_preset_menu",
text="Blind",
icon_value=icons["blind"].icon_id
).preset_operator = "archipack.blind"

box = layout.box()
box.label(text="Custom objects")
box.operator("archipack.wall", text="Custom wall")

Expand Down Expand Up @@ -650,8 +658,12 @@ def draw_menu(self, context):
text="Roof",
icon_value=icons["roof"].icon_id
).preset_operator = "archipack.roof"
layout.operator("archipack.blind_preset_menu",
text="Blind",
icon_value=icons["blind"].icon_id
).preset_operator = "archipack.blind"


class ARCHIPACK_create_menu(Menu):
bl_label = 'Archipack'
bl_idname = 'ARCHIPACK_create_menu'
Expand Down Expand Up @@ -717,6 +729,7 @@ def register():
archipack_slab.register()
archipack_fence.register()
archipack_truss.register()
archipack_blind.register()
# archipack_toolkit.register()
archipack_floor.register()
archipack_rendering.register()
Expand Down Expand Up @@ -758,6 +771,7 @@ def unregister():
archipack_slab.unregister()
archipack_fence.unregister()
archipack_truss.unregister()
archipack_blind.unregister()
# archipack_toolkit.unregister()
archipack_floor.unregister()
archipack_rendering.unregister()
Expand Down
Loading

0 comments on commit 395ea41

Please sign in to comment.