Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace atexit with explicit module register/unregister methods #101

Merged
merged 1 commit into from
Aug 2, 2022

Conversation

keianhzo
Copy link
Contributor

@keianhzo keianhzo commented Aug 2, 2022

I usually get exceptions running test when calling atexit. This PRs replaces atexit with a more explicit register_module and unregister_module methods that will be called before the component class is registered to give the module a chance to register classes that the component might require but that need to be loaded before Blender's runtime calls the class' register/unregister methods.

@keianhzo keianhzo merged commit f4b49f7 into master Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant