Skip to content

Commit

Permalink
Switch the rotation mode of the Light Probe object to quaternion so t…
Browse files Browse the repository at this point in the history
…hat the rotation is properly applied.
  • Loading branch information
Exairnous committed Jul 23, 2024
1 parent 682ba11 commit 9180870
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9180870

Please sign in to comment.