Asset Pipeline v2 #145
@ -130,6 +130,11 @@ def merge_task_layer(
|
||||
|
||||
map = AssetTransferMapping(local_col, external_col, local_tls)
|
||||
|
||||
# Remove all transfer data from target objects
|
||||
for source_obj in map.object_map:
|
||||
target_obj = map.object_map[source_obj]
|
||||
target_obj.transfer_data_ownership.clear()
|
||||
|
||||
transfer_core.apply_transfer_data(context, map.transfer_data_map)
|
||||
|
||||
for source_obj in map.object_map:
|
||||
|
@ -82,11 +82,6 @@ def apply_transfer_data(context: bpy.types.Context, transfer_data_map) -> None:
|
||||
context (bpy.types.Context): context of .blend file
|
||||
transfer_data_map: Map generated by class AssetTransferMapping
|
||||
"""
|
||||
target_objs = [
|
||||
transfer_data_map[name].get("target_obj") for name in transfer_data_map
|
||||
]
|
||||
for target_obj in set(target_objs):
|
||||
target_obj.transfer_data_ownership.clear()
|
||||
|
||||
for name in transfer_data_map:
|
||||
transfer_data = transfer_data_map[name]
|
||||
|
Loading…
Reference in New Issue
Block a user