Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Duroure <julien.duroure@gmail.com>2020-12-06 09:49:04 +0300
committerJulien Duroure <julien.duroure@gmail.com>2020-12-06 09:50:12 +0300
commitc5a84e2e1ad002f55ace47eeefe4f7deedeb75b5 (patch)
treed8848af4487bbce1b427ce32c85ebd049144b6cb /io_scene_gltf2
parent515d85d3faf2f88bbb7abee1d0b2d6d0fde0ba91 (diff)
gltf exporter: Fix T83188: avoid crash when background exporting (without UI)
Diffstat (limited to 'io_scene_gltf2')
-rwxr-xr-xio_scene_gltf2/__init__.py4
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