Add dumb window

This commit is contained in:
Dion Moult
2020-08-12 08:57:58 +10:00
parent a477a2046d
commit d56dd25245
2 changed files with 118 additions and 0 deletions
@@ -14,6 +14,7 @@ if bpy is not None:
from .module.model import wall as model_wall
from .module.model import stair as model_stair
from .module.model import door as model_door
from .module.model import window as model_window
from .module.model import slab as model_slab
classes = (
@@ -274,6 +275,7 @@ if bpy is not None:
model_wall.BIM_OT_add_object,
model_stair.BIM_OT_add_object,
model_door.BIM_OT_add_object,
model_window.BIM_OT_add_object,
model_slab.BIM_OT_add_object,
)
@@ -313,6 +315,7 @@ if bpy is not None:
bpy.types.VIEW3D_MT_mesh_add.append(model_wall.add_object_button)
bpy.types.VIEW3D_MT_mesh_add.append(model_stair.add_object_button)
bpy.types.VIEW3D_MT_mesh_add.append(model_door.add_object_button)
bpy.types.VIEW3D_MT_mesh_add.append(model_window.add_object_button)
bpy.types.VIEW3D_MT_mesh_add.append(model_slab.add_object_button)
def unregister():
@@ -336,4 +339,5 @@ if bpy is not None:
bpy.types.VIEW3D_MT_mesh_add.remove(model_wall.add_object_button)
bpy.types.VIEW3D_MT_mesh_add.remove(model_stair.add_object_button)
bpy.types.VIEW3D_MT_mesh_add.remove(model_door.add_object_button)
bpy.types.VIEW3D_MT_mesh_add.remove(model_window.add_object_button)
bpy.types.VIEW3D_MT_mesh_add.remove(model_slab.add_object_button)