Skip to content

Commit

Permalink
Merge pull request #316 from Exairnous/reflection-probe-baking-camera…
Browse files Browse the repository at this point in the history
…-cycles-api-fix

Fix reflection probes not baking in Blender versions 4.0 and 4.1
  • Loading branch information
Exairnous authored Nov 7, 2024
2 parents 2b575e8 + 47597eb commit e745587
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 e745587

Please sign in to comment.