mirror of
https://projects.blender.org/blender/blender.git
synced 2025-01-22 07:22:12 -05:00
glTF exporter: Missed background check in previous commit
This commit is contained in:
parent
2a52ca42bd
commit
16f728cfe5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue