Small config tweaks, removed cam/light check, code cleanup
This commit is contained in:
1 parent
4617c47ad0
commit
b800e5a68b
6 files changed
+148
-43
No files matched your search
+15
@@ -40,19 +40,34 @@ def _load_config_override():
|
||||
|
||||
# Register modules
|
||||
def register() -> None:
|
||||
# Register tool operators
|
||||
tools_ops.register()
|
||||
|
||||
# Load all the sanity checks into the sanity REGISTRY
|
||||
checks.load_all()
|
||||
|
||||
# Register the UI for all panels
|
||||
ui.register()
|
||||
|
||||
# Load the configuration for sanity checks
|
||||
_load_config_override()
|
||||
|
||||
# Load it natively
|
||||
bpy.app.handlers.load_post.append(_on_load_post)
|
||||
|
||||
|
||||
# Unregister modules
|
||||
def unregister() -> None:
|
||||
# Unregister tool operators
|
||||
tools_ops.unregister()
|
||||
|
||||
# Destroy the post loader
|
||||
if _on_load_post in bpy.app.handlers.load_post:
|
||||
bpy.app.handlers.load_post.remove(_on_load_post)
|
||||
|
||||
# Unregister all panels
|
||||
ui.unregister()
|
||||
|
||||
runner.clear()
|
||||
# The check registry is plain Python and is rebuilt with the modules on
|
||||
# re-import, so it is kept as is (enable/disable without re-import).
|
||||
Reference in new issue
Block a user