Asset Pipeline v2 #145
@ -144,7 +144,7 @@ class AssetTransferMapping:
|
|||||||
)
|
)
|
||||||
name = transfer_info.name + '_' + obj.name
|
name = transfer_info.name + '_' + obj.name
|
||||||
transfer_data_map[name] = {
|
transfer_data_map[name] = {
|
||||||
'transfer_info': temp_info,
|
'transfer_info': temp_info.name, # TODO avoid name collisions
|
||||||
'source_obj': obj,
|
'source_obj': obj,
|
||||||
'target_obj': target_obj,
|
'target_obj': target_obj,
|
||||||
}
|
}
|
||||||
@ -163,7 +163,7 @@ class AssetTransferMapping:
|
|||||||
)
|
)
|
||||||
name = transfer_info.name + '_' + obj.name
|
name = transfer_info.name + '_' + obj.name
|
||||||
transfer_data_map[name] = {
|
transfer_data_map[name] = {
|
||||||
'transfer_info': temp_info,
|
'transfer_info': temp_info.name, # TODO avoid name collisions
|
||||||
'source_obj': obj,
|
'source_obj': obj,
|
||||||
'target_obj': target_obj,
|
'target_obj': target_obj,
|
||||||
}
|
}
|
||||||
|
@ -89,8 +89,9 @@ def apply_transfer_data(context: bpy.types.Context, transfer_data_map) -> None:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
for name in transfer_data_map:
|
for name in transfer_data_map:
|
||||||
|
temp_transfer_data = context.scene.asset_pipeline.temp_transfer_data
|
||||||
transfer_data = transfer_data_map[name]
|
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')
|
target_obj = transfer_data.get('target_obj')
|
||||||
source_obj = transfer_data.get('source_obj')
|
source_obj = transfer_data.get('source_obj')
|
||||||
if target_obj is None:
|
if target_obj is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user