Skip to content

Update baker.py fix for Blender 5.1#24

Open
koloved wants to merge 1 commit into
oRazeD:mainfrom
koloved:main
Open

Update baker.py fix for Blender 5.1#24
koloved wants to merge 1 commit into
oRazeD:mainfrom
koloved:main

Conversation

@koloved

@koloved koloved commented May 13, 2026

Copy link
Copy Markdown

fix(baker): ensure engine property exists on class for restored bakers

  • Move engine EnumProperty definition before the index check in initialize() with a hasattr guard, so bakers loaded from saved files have the attribute
  • Use getattr(self, 'engine', None) in draw() and Normals.draw_properties() as fallback during UI rendering before initialization completes

The changes were made to work with blender version 5.1. I did not check on other versions.

Used Qwen 3.6 27b Local to fix it

fix(baker): ensure engine property exists on class for restored bakers

- Move engine EnumProperty definition before the index check in initialize()
  with a hasattr guard, so bakers loaded from saved files have the attribute
- Use getattr(self, 'engine', None) in draw() and Normals.draw_properties()
  as fallback during UI rendering before initialization completes
@koloved koloved changed the title Update baker.py Update baker.py fix for Blender 5.1 May 13, 2026
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