New dumb stair tool

This commit is contained in:
Dion Moult
2020-08-11 19:05:26 +10:00
parent e2fd9add83
commit 0d221fa759
3 changed files with 62 additions and 1 deletions
@@ -12,6 +12,7 @@ if bpy is not None:
from .module.covetool import operator as covetool_operator
from .module.model import wall as model_wall
from .module.model import stair as model_stair
classes = (
operator.AssignClass,
@@ -269,6 +270,7 @@ if bpy is not None:
covetool_operator.RunSimpleAnalysis,
covetool_operator.RunAnalysis,
model_wall.BIM_OT_add_object,
model_stair.BIM_OT_add_object,
)
def menu_func_export(self, context):
@@ -305,6 +307,7 @@ if bpy is not None:
bpy.types.Scene.CoveToolProperties = bpy.props.PointerProperty(type=covetool_prop.CoveToolProperties)
bpy.types.SCENE_PT_unit.append(ui.ifc_units)
bpy.types.VIEW3D_MT_mesh_add.append(model_wall.add_object_button)
bpy.types.VIEW3D_MT_mesh_add.append(model_stair.add_object_button)
def unregister():
for cls in reversed(classes):
@@ -325,3 +328,4 @@ if bpy is not None:
del(bpy.types.Camera.BIMTextProperties)
bpy.types.SCENE_PT_unit.remove(ui.ifc_units)
bpy.types.VIEW3D_MT_mesh_add.remove(model_wall.add_object_button)
bpy.types.VIEW3D_MT_mesh_add.remove(model_stair.add_object_button)