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.
Showing only changes of commit 7c9dcf6912 - Show all commits

View File

@ -23,3 +23,29 @@ def get_transfer_data_owner(td_type_key: str, use_default_owner: bool, name=""):
return default_tl
else:
return get_local_task_layers()[0]
def draw_task_layer_selection(
row,
scene,
data,
data_owner,
data_owner_name,
):
if data_owner not in [tl.name for tl in scene.asset_pipeline.local_task_layers]:
row.enabled = False
row.prop_search(
data,
data_owner_name,
scene.asset_pipeline,
'all_task_layers',
text="",
)
else:
row.prop_search(
data,
data_owner_name,
scene.asset_pipeline,
'local_task_layers',
text="",
)