Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

Commit

Permalink
Fix: disabling Z-to-Y-up also disabled KHR_lights
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiogshi committed Jul 16, 2018
1 parent 19ba449 commit b5321b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/addons/io_scene_gltf2/gltf2_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1611,10 +1611,10 @@ def generate_node_instance(context,
if blender_object.type == 'LAMP':
light = get_light_index(glTF, blender_object.data.name)
if light >= 0:
if export_settings['gltf_yup']:
khr_lights = {'light': light}
extensions = {'KHR_lights': khr_lights}
khr_lights = {'light': light}
extensions = {'KHR_lights': khr_lights}

if export_settings['gltf_yup']:
# Add correction node for light, as default direction is different to Blender.
correction_node = {}

Expand Down

0 comments on commit b5321b7

Please sign in to comment.