-
Notifications
You must be signed in to change notification settings - Fork 53
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 encode call for Blender 3.5 #214
Conversation
if mime_type == "image/vnd.radiance": | ||
return self.encode_from_image_hdr(self.blender_image()) | ||
return super().encode(mime_type) | ||
if bpy.app.version < (3, 5, 0): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this changed in 3.4 KhronosGroup/glTF-Blender-IO@9af5fad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That commit was part of the 3.5.0 milestone: KhronosGroup/glTF-Blender-IO#1794
It wasn't there when 3.4.0 was tagged AFAIK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm that this is only needed for 3.5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
ExportImage.encode
has changed it's signature in the Blender 3.5 glTF exporter. This PR adds 3.5.0 testing support and fixes the encoding issue.