Asset Pipeline v2 #145
@ -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,27 +14,11 @@ 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="",
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def draw_transfer_data(
|
def draw_transfer_data(
|
||||||
|
Loading…
Reference in New Issue
Block a user