Skip to content

Commit

Permalink
loading now works, via manual global loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonNordon4 committed Dec 10, 2023
1 parent 762b8aa commit fa8b40c
Show file tree
Hide file tree
Showing 5 changed files with 405 additions and 212 deletions.
15 changes: 6 additions & 9 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
CollectionProperty
)

import auto_load
if "auto_load" in locals():
import bakelab_loader
if "bakelab_loader" in locals():
import importlib
importlib.reload(auto_load)
importlib.reload(bakelab_loader)

bl_info = {
"name" : "BakeLab",
Expand All @@ -60,14 +60,11 @@
"category" : "Baking"
}

auto_load.AutoLoader.init()

def register():
auto_load.AutoLoader.register()
bakelab_loader.register()

def unregister():
auto_load.AutoLoader.unregister()
bakelab_loader.unregister()

if __name__ == "__main__":
register()
pass
register()
Loading

0 comments on commit fa8b40c

Please sign in to comment.