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

Fix blender 4.2 reflection probe baking and image importing #313

Merged
merged 2 commits into from
Oct 19, 2024

Conversation

Exairnous
Copy link
Contributor

Accounts for the new API differences in Blender 4.2. See the commits for details.

Blender has re-arranged it's Cycles API so that the panorama settings that were previously stored on the `cycles` property of the camera data are now stored directly on the camera data.  The root of the panorama settings is now abstracted into a variable so that the panorama settings can be accessed from Blender 4.2 while maintaining backward compatibility with previous versions.
Blender 4.2 no longer allows images (or possibly anything) to be assigned to uninitialized Group IDProperties via key access, e.g. `probe_component['envMapTexture'] = img` isn't allowed anymore.
Images are now assigned directly to the property without going through the key, e.g. `probe_component.envMapTexture = img`.
Note: `setattr` also works because it also directly assigns without going through the key.
@Exairnous Exairnous added this to the 1.6.1 milestone Oct 15, 2024
@Exairnous Exairnous merged commit e45e941 into master Oct 19, 2024
6 checks passed
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