Skip to content

Commit

Permalink
Merge pull request #2256 from KhronosGroup/fix_gn_data_type
Browse files Browse the repository at this point in the history
Fix geometry node instance data type check
  • Loading branch information
julienduroure authored May 30, 2024
2 parents 627b756 + a555f3e commit 83d8a68
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 83d8a68

Please sign in to comment.