diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py index 7554b05e40de7d862489af96cef0973768e8ad92..b4f7992f2aca672c1ec4889bbf74bc2f2cd014a0 100755 --- a/io_scene_gltf2/__init__.py +++ b/io_scene_gltf2/__init__.py @@ -5,7 +5,7 @@ bl_info = { 'name': 'glTF 2.0 format', 'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors', - "version": (4, 1, 62), + "version": (4, 1, 63), 'blender': (4, 1, 0), 'location': 'File > Import-Export', 'description': 'Import-Export as glTF 2.0', diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py index 341f2ba2e6be330ca31e8ac3b2336e040daeec94..a5af6639cea830c49d1224527fa5b92b7248260d 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py @@ -184,7 +184,7 @@ def __gather_extensions(vnode, export_settings): extensions = {} blender_lamp = None - if export_settings["gltf_lights"] and vnode.blender_type == VExportNode.INSTANCE: + if export_settings["gltf_lights"] and vnode.blender_type == VExportNode.INSTANCE and vnode.data is not None: if vnode.data.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"):