glTF exporter: Missed background check in previous commit

This commit is contained in:
Julien Duroure 2025-01-22 09:19:13 +01:00
parent 2a52ca42bd
commit 16f728cfe5

View file

@ -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)