diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py index eec978a3b5c822b1781f99e6c396b9770f1005ce..50dab7180925af78b8344fe168093f2141371825 100755 --- a/io_scene_gltf2/__init__.py +++ b/io_scene_gltf2/__init__.py @@ -15,7 +15,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": (1, 5, 6), + "version": (1, 5, 7), 'blender': (2, 91, 0), 'location': 'File > Import-Export', 'description': 'Import-Export as glTF 2.0', @@ -73,6 +73,8 @@ extension_panel_unregister_functors = [] def on_export_format_changed(self, context): # Update the file extension when the format (.glb/.gltf) changes sfile = context.space_data + if sfile is None: + return # Avoid error when export from background operator = sfile.active_operator if operator.bl_idname != "EXPORT_SCENE_OT_gltf": return