Skip to content

Commit

Permalink
Merge branch 'main' of github.com:KhronosGroup/glTF-Blender-IO
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduroure committed May 30, 2024
2 parents 626c2f0 + 83d8a68 commit d5f276c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def __gather_extensions(vnode, export_settings):
return None

if export_settings["gltf_lights"] and vnode.blender_type == VExportNode.INSTANCE and vnode.data is not None:
if vnode.data.type in LIGHTS:
if vnode.data.id_type in LIGHTS:
blender_lamp = vnode.data
elif export_settings["gltf_lights"] and blender_object is not None and (blender_object.type == "LAMP" or blender_object.type == "LIGHT"):
blender_lamp = blender_object.data
Expand Down

0 comments on commit d5f276c

Please sign in to comment.