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

Numba machine fix #149

Merged
merged 4 commits into from
Mar 30, 2024
Merged

Conversation

SpectralVectors
Copy link
Collaborator

Commented out numba import from the __init__ for now, until the issues with crashing can be resolved.

Moved _IS_LOADING_DEFAULTS out of the updateMachine function, declared the default = False, and grabbed it via utils.IS_LOADING_DEFAULTS.

Note: It was already declared a global variable within the function, and I thought that would have been enough to avoid this error, but it works now

Lastly, altered the cleanup in the _calc_path function in ops.py - previously it was checking for and deleting objects without issues.

In Blender 4.0 and previous, deleting an object would also delete its associated mesh data.

In Blender 4.1 deleting an object would still leave behind mesh data that retained the object name, causing the cleanup function to not recognize and update old operations.

Simply deleting the mesh data solves the issue, as it will also delete the object with it, even though the reverse is no longer true.

Note: This may be a bug in 4.1, but the new method also works in 4.0, so I don't think it will need to change, even if Blender restores the previous behavior

[skip actions]
Commented out `numba` import from the `__init__` for now, until the issues with crashing can be resolved.
Moved `_IS_LOADING_DEFAULTS` out of the `updateMachine` function, declared the default value = False, and grabbed it via `utils.IS_LOADING_DEFAULTS`.
(Note: It was already declared a `global` variable within the function, and I thought that would have been enough to avoid this error, but it works now)

Lastly, altered the cleanup in the `_calc_path` function in `ops.py` - previously it was checking for and deleting objects without issues. 
In Blender 4.1 deleting an object would still leave behind mesh data that retained the object name, causing the cleanup function to not recognize and update old operations.
Simply deleting the mesh data solves the issue, as it will also delete the object with it, even though the reverse is no longer true.
@pppalain pppalain merged commit 0d22d3e into pppalain:master Mar 30, 2024
0 of 5 checks passed
@SpectralVectors SpectralVectors deleted the numba-machine-fix branch September 5, 2024 21:00
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.

2 participants