refectored decorations.

fixed #1241 somehow
This commit is contained in:
QwiglyDee
2021-01-06 03:52:40 +07:00
parent db5418cbfe
commit 02b01b2a44
2 changed files with 131 additions and 137 deletions
+3 -6
View File
@@ -348,11 +348,9 @@ def refreshTitleblocks(self, context):
def toggleDecorations(self, context):
toggle = self.should_draw_decorations
if toggle:
for dec in decoration.all_decorators:
dec.install(self, context)
decoration.DecorationsHandler.install(context)
else:
for dec in decoration.all_decorators:
dec.uninstall()
decoration.DecorationsHandler.uninstall()
def getScenarios(self, context):
@@ -657,8 +655,7 @@ class DocProperties(PropertyGroup):
drawing_styles: CollectionProperty(name="Drawing Styles", type=DrawingStyle)
should_draw_decorations: BoolProperty(name="Should Draw Decorations", update=toggleDecorations)
decorations_colour: FloatVectorProperty(name="Decorations Colour", subtype="COLOR", default=(1, 0, 0, 1),
min=0.0, max=1.0, size=4,
update=toggleDecorations)
min=0.0, max=1.0, size=4)
class BIMCameraProperties(PropertyGroup):