Asset Pipeline v2 #145
@ -69,20 +69,20 @@ class ASSETPIPE_OT_sync_with_publish(bpy.types.Operator):
|
||||
|
||||
def draw(self, context: bpy.types.Context):
|
||||
layout = self.layout
|
||||
ownership = context.scene.temp_transfer_data_ownership
|
||||
|
||||
row = layout.row()
|
||||
if self.push:
|
||||
row.prop(self, "pull")
|
||||
row.prop(self, "save")
|
||||
|
||||
if self._new_transfer_data:
|
||||
layout.label(text="New Transfer Data will be Pushed to Publish")
|
||||
else:
|
||||
if len(ownership) == 0:
|
||||
layout.label(text="No New Transfer Data found")
|
||||
|
||||
# TODO re-use transfer UI here
|
||||
for key in constants.TRANSFER_DATA_KEYS:
|
||||
self.draw_transfer_data_items(layout, key)
|
||||
else:
|
||||
layout.label(text="New Transfer Data will be Pushed to Publish")
|
||||
# TODO SORT PER OBJECT AND DRAW FOR EACH OBJ
|
||||
# TODO Store ownership in self for easier access
|
||||
transfer_ui.draw_transfer_data(ownership, layout)
|
||||
|
||||
def execute(self, context: bpy.types.Context):
|
||||
# Find current task Layer
|
||||
|
@ -2,6 +2,8 @@ from .. import constants, core
|
||||
|
||||
|
||||
def draw_transfer_data_type(layout, items):
|
||||
if items == []:
|
||||
return
|
||||
name = core.get_enum_item(constants.TRANSFER_DATA_TYPES, items[0].type)[1]
|
||||
box = layout.box()
|
||||
box.label(text=name, icon=items[0].type)
|
||||
|
Loading…
Reference in New Issue
Block a user