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