diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2020-12-06 09:49:04 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2020-12-06 09:50:12 +0300 |
commit | c5a84e2e1ad002f55ace47eeefe4f7deedeb75b5 (patch) | |
tree | d8848af4487bbce1b427ce32c85ebd049144b6cb /io_scene_gltf2 | |
parent | 515d85d3faf2f88bbb7abee1d0b2d6d0fde0ba91 (diff) |
gltf exporter: Fix T83188: avoid crash when background exporting (without UI)
Diffstat (limited to 'io_scene_gltf2')
-rwxr-xr-x | io_scene_gltf2/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py index eec978a3..50dab718 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 |