mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user