Skip to content

Commit c243857

Browse files
Merge pull request #2190 from KhronosGroup/fix_2189
Fix #2189 - regression crash in GN lamp instance export
2 parents 5153586 + a9d5f9e commit c243857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def __gather_extensions(vnode, export_settings):
193193
extensions = {}
194194

195195
blender_lamp = None
196-
if export_settings["gltf_lights"] and vnode.blender_type == VExportNode.INSTANCE:
196+
if export_settings["gltf_lights"] and vnode.blender_type == VExportNode.INSTANCE and vnode.data is not None:
197197
if vnode.data.type in LIGHTS:
198198
blender_lamp = vnode.data
199199
elif export_settings["gltf_lights"] and blender_object is not None and (blender_object.type == "LAMP" or blender_object.type == "LIGHT"):

0 commit comments

Comments
 (0)