diff --git a/src/ifcblenderexport/blenderbim/bim/decoration.py b/src/ifcblenderexport/blenderbim/bim/decoration.py index 41927d6a2f..68d1afa855 100644 --- a/src/ifcblenderexport/blenderbim/bim/decoration.py +++ b/src/ifcblenderexport/blenderbim/bim/decoration.py @@ -598,6 +598,13 @@ class HiddenDecorator(BaseDecorator): self.draw_lines(obj, verts, idxs) +class MiscDecorator(HiddenDecorator): + basename = "IfcAnnotation/Misc" + installed = None + + FRAG_GLSL = BaseDecorator.FRAG_GLSL + + class LevelDecorator(BaseDecorator): def get_splines(self, obj): diff --git a/src/ifcblenderexport/blenderbim/bim/prop.py b/src/ifcblenderexport/blenderbim/bim/prop.py index 017d494c19..1ebfc3ff5c 100644 --- a/src/ifcblenderexport/blenderbim/bim/prop.py +++ b/src/ifcblenderexport/blenderbim/bim/prop.py @@ -368,6 +368,7 @@ def toggleDecorations(self, context): decoration.HiddenDecorator.install(self, context) decoration.PlanDecorator.install(self, context) decoration.SectionDecorator.install(self, context) + decoration.MiscDecorator.install(self, context) else: decoration.DimensionDecorator.uninstall() decoration.EqualityDecorator.uninstall() @@ -376,6 +377,7 @@ def toggleDecorations(self, context): decoration.HiddenDecorator.uninstall() decoration.PlanDecorator.uninstall() decoration.SectionDecorator.uninstall() + decoration.MiscDecorator.uninstall() def getScenarios(self, context): diff --git a/src/ifcblenderexport/blenderbim/bim/ui.py b/src/ifcblenderexport/blenderbim/bim/ui.py index d80e32f013..702d2dd086 100644 --- a/src/ifcblenderexport/blenderbim/bim/ui.py +++ b/src/ifcblenderexport/blenderbim/bim/ui.py @@ -2454,6 +2454,9 @@ class BIM_PT_annotation_utilities(Panel): op = row.operator("bim.add_annotation", text="Breakline", icon="FCURVE") op.obj_name = "Break" op.data_type = "mesh" + op = row.operator("bim.add_annotation", text="Misc", icon="MESH_MONKEY") + op.obj_name = "Misc" + op.data_type = "mesh" props = bpy.context.scene.DocProperties