Fix T42975: FBX export: Do not export empty groups.

Thanks to Squashwell (Harrison Nordby) for org report and patch.
This commit is contained in:
Bastien Montagne 2014-12-21 12:52:06 +01:00
parent 665b1a4113
commit e22da49ade
Notes: blender-bot 2023-02-14 20:00:56 +01:00
Referenced by issue #42975, FBX Binary export fails with grouped batching when one of the groups contains no objects
2 changed files with 2 additions and 2 deletions

View File

@ -2860,7 +2860,7 @@ def save(operator, context,
fbxpath += os.sep
if batch_mode == 'GROUP':
data_seq = bpy.data.groups
data_seq = tuple(grp for grp in bpy.data.groups if grp.objects)
else:
data_seq = bpy.data.scenes

View File

@ -2900,7 +2900,7 @@ def save(operator, context,
fbxpath = os.path.dirname(fbxpath)
if batch_mode == 'GROUP':
data_seq = bpy.data.groups
data_seq = tuple(grp for grp in bpy.data.groups if grp.objects)
else:
data_seq = bpy.data.scenes