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 4e90b4fe62 - Show all commits

View File

@ -1,6 +1,6 @@
import bpy import bpy
from ... import constants from ... import constants
from ..task_layer import draw_task_layer_selection from ..task_layer import draw_task_layer_selection, get_local_task_layers
def draw_transfer_data_type( def draw_transfer_data_type(
@ -27,6 +27,17 @@ def draw_transfer_data_type(
for transfer_data_item in transfer_data: for transfer_data_item in transfer_data:
row = box.row() row = box.row()
row.label(text=f"{transfer_data_item.name}: ") row.label(text=f"{transfer_data_item.name}: ")
if transfer_data_item.get("surrender"):
enabled = (
False if transfer_data_item.owner in get_local_task_layers() else True
)
row.operator(
"assetpipe.update_surrendered_transfer_data"
).transfer_data_item_name = transfer_data_item.name
row.enabled = enabled
return
else:
row.prop(transfer_data_item, "surrender", text="Surrender") row.prop(transfer_data_item, "surrender", text="Surrender")
draw_task_layer_selection( draw_task_layer_selection(
row, row,
@ -36,11 +47,6 @@ def draw_transfer_data_type(
"owner", "owner",
transfer_data_item.get("use_default_owner"), transfer_data_item.get("use_default_owner"),
) )
if transfer_data_item.get("surrender"):
row.operator(
"assetpipe.update_surrendered_transfer_data"
).transfer_data_item_name = transfer_data_item.name
row.enabled = True
def draw_transfer_data( def draw_transfer_data(