Skip to content

Fix crashing before showing blender version error message#85

Open
Nightriff wants to merge 1 commit into
task/bump-package-versionsfrom
fix/crash-when-blender-out-of-date
Open

Fix crashing before showing blender version error message#85
Nightriff wants to merge 1 commit into
task/bump-package-versionsfrom
fix/crash-when-blender-out-of-date

Conversation

@Nightriff

Copy link
Copy Markdown
Contributor

Blender 3.2.0 updated python version from 3.9 to 3.10, which is when python started supporting match.

Since match is used in creator_details.py, any time this file is imported in blender versions < 3.2.0 will crash.

There's a version warning to tell the user Blender is too out of date, but it doesn't get to that point because the creator_details class and other classes that depend on it are first registered with Blender before the main panel displays the message.

This PR updates the registration process to only register the main panel if blender is out of date. If the blender version is supported, then it will register all the classes as before.

Fixes #30

image

@Nightriff Nightriff added the bug Something isn't working label May 28, 2025
@Nightriff Nightriff self-assigned this May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant