Fix T42975: FBX export: Do not export empty groups.
Thanks to Squashwell (Harrison Nordby) for org report and patch.
This commit is contained in:
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
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue