getavalon / core

The safe post-production pipeline - https://getavalon.github.io/2.0
MIT License
218 stars 49 forks source link

Use the active project in debug mode (fix #460) #470

Closed jasperges closed 4 years ago

jasperges commented 4 years ago

What's changed? Previously if AVALON_DEBUG was set to True the Loader and Scene Inventory would use the first project found in the database instead of the current active project. This PR removes this behavior. It also adds overwriting the sys.excepthook for the Scene Inventory when in debug mode. This should prevent crashing the host when there is an error in the code. This was already in the Loader.