Implement auto and manual refresh of the Brick model navigator

This commit is contained in:
Dion Moult
2022-01-11 14:46:58 +11:00
parent c6966f9b39
commit 49221739cf
9 changed files with 83 additions and 14 deletions
@@ -163,3 +163,12 @@ class NewBrickFile(bpy.types.Operator, Operator):
def _execute(self, context):
core.new_brick_file(tool.Brick)
class RefreshBrickViewer(bpy.types.Operator, Operator):
bl_idname = "bim.refresh_brick_viewer"
bl_label = "Refresh Brick Viewer"
bl_options = {"REGISTER", "UNDO"}
def _execute(self, context):
core.refresh_brick_viewer(tool.Brick)