Asset Pipeline v2 #145

Closed
Nick Alberelli wants to merge 431 commits from (deleted):feature/asset-pipeline-v2 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
2 changed files with 4 additions and 3 deletions
Showing only changes of commit f4d377f78f - Show all commits

View File

@ -144,7 +144,7 @@ class AssetTransferMapping:
)
name = transfer_info.name + '_' + obj.name
transfer_data_map[name] = {
'transfer_info': temp_info,
'transfer_info': temp_info.name, # TODO avoid name collisions
'source_obj': obj,
'target_obj': target_obj,
}
@ -163,7 +163,7 @@ class AssetTransferMapping:
)
name = transfer_info.name + '_' + obj.name
transfer_data_map[name] = {
'transfer_info': temp_info,
'transfer_info': temp_info.name, # TODO avoid name collisions
'source_obj': obj,
'target_obj': target_obj,
}

View File

@ -89,8 +89,9 @@ def apply_transfer_data(context: bpy.types.Context, transfer_data_map) -> None:
"""
for name in transfer_data_map:
temp_transfer_data = context.scene.asset_pipeline.temp_transfer_data
transfer_data = transfer_data_map[name]
transfer_info = transfer_data.get('transfer_info')
transfer_info = temp_transfer_data.get(transfer_data.get('transfer_info'))
target_obj = transfer_data.get('target_obj')
source_obj = transfer_data.get('source_obj')
if target_obj is None: