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