From 16f728cfe58dd497d16b62d73430e62eb988a6d3 Mon Sep 17 00:00:00 2001 From: Julien Duroure Date: Wed, 22 Jan 2025 09:19:13 +0100 Subject: [PATCH] glTF exporter: Missed background check in previous commit --- scripts/addons_core/io_scene_gltf2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/addons_core/io_scene_gltf2/__init__.py b/scripts/addons_core/io_scene_gltf2/__init__.py index d997f30bdf5..4b168ad0875 100755 --- a/scripts/addons_core/io_scene_gltf2/__init__.py +++ b/scripts/addons_core/io_scene_gltf2/__init__.py @@ -1101,7 +1101,7 @@ class ExportGLTF2_Base(ConvertGLTF2_Base): # Collection Export does not handle correctly props declaration for now # So use this tweak to manage it, waiting for a better solution - is_file_browser = context.space_data.type == 'FILE_BROWSER' + is_file_browser = context.space_data and context.space_data.type == 'FILE_BROWSER' if not is_file_browser: if not hasattr(context.scene, "gltf_action_filter") and self.export_action_filter: bpy.types.Scene.gltf_action_filter = bpy.props.CollectionProperty(type=GLTF2_filter_action)