mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 19:27:10 +00:00
@@ -366,6 +366,7 @@ if bpy is not None:
|
|||||||
module_spatial.register()
|
module_spatial.register()
|
||||||
module_unit.register()
|
module_unit.register()
|
||||||
bpy.app.handlers.depsgraph_update_pre.append(operator.depsgraph_update_pre_handler)
|
bpy.app.handlers.depsgraph_update_pre.append(operator.depsgraph_update_pre_handler)
|
||||||
|
bpy.app.handlers.load_post.append(prop.toggleDecorationsOnLoad)
|
||||||
|
|
||||||
def unregister():
|
def unregister():
|
||||||
for cls in reversed(classes):
|
for cls in reversed(classes):
|
||||||
|
|||||||
@@ -353,6 +353,15 @@ def toggleDecorations(self, context):
|
|||||||
decoration.DecorationsHandler.uninstall()
|
decoration.DecorationsHandler.uninstall()
|
||||||
|
|
||||||
|
|
||||||
|
@persistent
|
||||||
|
def toggleDecorationsOnLoad(*args):
|
||||||
|
toggle = bpy.context.scene.DocProperties.should_draw_decorations
|
||||||
|
if toggle:
|
||||||
|
decoration.DecorationsHandler.install(bpy.context)
|
||||||
|
else:
|
||||||
|
decoration.DecorationsHandler.uninstall()
|
||||||
|
|
||||||
|
|
||||||
def getScenarios(self, context):
|
def getScenarios(self, context):
|
||||||
global scenarios_enum
|
global scenarios_enum
|
||||||
if len(scenarios_enum) < 1:
|
if len(scenarios_enum) < 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user