Skip to content

Commit

Permalink
Fix reflection probes not baking in Blender versions 4.0 and 4.1
Browse files Browse the repository at this point in the history
The API for accessing certain cycles camera settings changed in Blender 4.0,
but the code handling this was mistakenly set to use the new API for only 4.2+ instead of 4.0+.
  • Loading branch information
Exairnous committed Nov 7, 2024
1 parent 2b575e8 commit 47597eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def restore_render_props(self):

def setup_probe_render(self, context):
probe = self.probes[self.probe_index]
cycles_settings = self.camera_data.cycles if bpy.app.version < (4, 2, 0) else self.camera_data
cycles_settings = self.camera_data.cycles if bpy.app.version < (4, 0, 0) else self.camera_data

self.camera_data.type = "PANO"
cycles_settings.panorama_type = "EQUIRECTANGULAR"
Expand Down

0 comments on commit 47597eb

Please sign in to comment.