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

Clear Modules from a Previous Install #261

Merged
merged 1 commit into from
Oct 8, 2022
Merged

Clear Modules from a Previous Install #261

merged 1 commit into from
Oct 8, 2022

Conversation

NullSenseStudio
Copy link
Collaborator

@NullSenseStudio NullSenseStudio commented Oct 6, 2022

Blender (at least on Windows) will only reload __init__.py when the user enables the addon and detects that the file has changed, leaving all other modules from the addon still loaded and leads to __init__.py attempting to use out-of-date modules after installing a new version.

This change will allow __init__.py to clear those modules so they too get reloaded.

Installing a new version will still require that the previous version is disabled, removed from Blender, or when left enabled it is disabled and enabled again after installed.
blender_j6RmG2ZdAE
Version is misleading. bl_info gets updated when the new version is installed. It was still running 0.0.6 at the start of the gif

@carson-katri carson-katri added this to the v0.0.8 milestone Oct 8, 2022
Copy link
Owner

@carson-katri carson-katri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice QOL improvement, thanks

@carson-katri carson-katri merged commit 0cd4b42 into carson-katri:main Oct 8, 2022
@NullSenseStudio NullSenseStudio deleted the update-fix branch October 14, 2022 18:02
JasonHoku pushed a commit to JasonHoku/dream-textures that referenced this pull request Dec 20, 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.

None yet

2 participants