FBX: Enable the Collection exporter feature #105273
@ -3612,8 +3612,9 @@ def save(operator, context,
|
||||
if use_active_collection:
|
||||
source_collection = context.view_layer.active_layer_collection.collection
|
||||
elif collection:
|
||||
if collection in bpy.data.collections:
|
||||
source_collection = bpy.data.collections[collection]
|
||||
local_collection = bpy.data.collections.get((collection, None))
|
||||
if local_collection:
|
||||
source_collection = local_collection
|
||||
else:
|
||||
operator.report({'ERROR'}, "Collection '%s' was not found" % collection)
|
||||
return {'CANCELLED'}
|
||||
|
Loading…
Reference in New Issue
Block a user