From 47597eb5be65ae1de417341f47f2594b9d8e9dcf Mon Sep 17 00:00:00 2001 From: Ryan Inch Date: Thu, 7 Nov 2024 01:03:35 -0500 Subject: [PATCH] Fix reflection probes not baking in Blender versions 4.0 and 4.1 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+. --- addons/io_hubs_addon/components/definitions/reflection_probe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/io_hubs_addon/components/definitions/reflection_probe.py b/addons/io_hubs_addon/components/definitions/reflection_probe.py index d7c4f491..16223bad 100644 --- a/addons/io_hubs_addon/components/definitions/reflection_probe.py +++ b/addons/io_hubs_addon/components/definitions/reflection_probe.py @@ -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"