From 9180870aba1cf2364e89eefd6bb5a567470bf27d Mon Sep 17 00:00:00 2001 From: Ryan Inch Date: Tue, 23 Jul 2024 14:17:20 -0400 Subject: [PATCH] Switch the rotation mode of the Light Probe object to quaternion so that the rotation is properly applied. --- addons/io_hubs_addon/components/definitions/reflection_probe.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/io_hubs_addon/components/definitions/reflection_probe.py b/addons/io_hubs_addon/components/definitions/reflection_probe.py index a3a0ee5a..e3723c25 100644 --- a/addons/io_hubs_addon/components/definitions/reflection_probe.py +++ b/addons/io_hubs_addon/components/definitions/reflection_probe.py @@ -763,6 +763,7 @@ def gather_import(cls, gltf, blender_host, component_name, component_value, impo lightprobe_data.influence_type = 'BOX' lightprobe_object = bpy.data.objects.new(reflecion_probe_name, lightprobe_data) lightprobe_object.location = blender_host.location + lightprobe_object.rotation_mode = 'QUATERNION' lightprobe_object.rotation_quaternion = blender_host.rotation_quaternion lightprobe_object.scale = blender_host.scale lightprobe_object.parent = blender_host