Skip to content

Commit

Permalink
Avoid crash in background mode
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduroure committed Jan 22, 2025
1 parent f76ec81 commit 4b200cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/io_scene_gltf2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ def execute(self, context):

# 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)
Expand Down

0 comments on commit 4b200cc

Please sign in to comment.