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

PySide6 compatibility + new 4.2 modal_operators check in case event dies #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonahjnewton
Copy link

@jonahjnewton jonahjnewton commented Feb 12, 2025

Some new changes to work with PySide6 and Blender 4.2+.

The QT Event loop was causing seg faults when performing the New File action in tk-multi-workfiles2, as well as some other actions in other apps. To mitigate this, events are processed directly by the app rather than using an event loop. This fixes the crashes.

The event loop was also being killed after new file operations, so I've added a handler for load_post to create the event loop again if it has died. This does use the new window.modal_operators implemented with Blender 4.2 to ensure only one loop exists at a time, which would need to be handled in a different way for pre-4.2 compatibility.

Also includes changes from #18

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