Misc annotation and decoration.

close #1209
This commit is contained in:
QwiglyDee
2020-12-26 23:41:10 +07:00
parent 8d05ceaea9
commit 7e306251c1
3 changed files with 12 additions and 0 deletions
@@ -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