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

Blender modules don't update on save when executing blender code from within vscode #2

Closed
SimonNordon4 opened this issue May 19, 2022 · 1 comment

Comments

@SimonNordon4
Copy link
Owner

SimonNordon4 commented May 19, 2022

Updates the script being executed work, but modules don't update from initial script execution. Possible to fix by looking at how those modules are imported. Currently using system path append each time.

@SimonNordon4
Copy link
Owner Author

SimonNordon4 commented May 19, 2022

Fixed by reloading modules in main execute function.

import importLib
importLib.reload("EXACT_MODULE")
#example
importLib.reload(ublend.ops)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant