Asset Pipeline v2 #145
@ -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="",
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user