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 2f838a9b41 - Show all commits

View File

@ -1,6 +1,6 @@
import bpy import bpy
from ... import constants from ... import constants
from ..task_layer import get_local_task_layers from ..task_layer import draw_task_layer_selection
def draw_transfer_data_type( def draw_transfer_data_type(
@ -14,26 +14,10 @@ def draw_transfer_data_type(
box.label(text=name, icon=icon) box.label(text=name, icon=icon)
scene = bpy.context.scene scene = bpy.context.scene
for transfer_data_item in transfer_data: for transfer_data_item in transfer_data:
row = layout.row() row = box.row()
row.label(text=f"{transfer_data_item.name}: ") row.label(text=f"{transfer_data_item.name}: ")
if transfer_data_item.owner not in [ draw_task_layer_selection(
tl.name for tl in scene.asset_pipeline.local_task_layers row, scene, transfer_data_item, transfer_data_item.owner, "owner"
]:
row.enabled = False
row.prop_search(
transfer_data_item,
'owner',
scene.asset_pipeline,
'all_task_layers',
text="",
)
else:
row.prop_search(
transfer_data_item,
'owner',
scene.asset_pipeline,
'local_task_layers',
text="",
) )