Asset Pipeline: Improve Push Operator UI #199
@ -324,7 +324,7 @@ class ASSETPIPE_OT_sync_pull(bpy.types.Operator):
|
|||||||
|
|
||||||
class ASSETPIPE_OT_sync_push(bpy.types.Operator):
|
class ASSETPIPE_OT_sync_push(bpy.types.Operator):
|
||||||
bl_idname = "assetpipe.sync_push"
|
bl_idname = "assetpipe.sync_push"
|
||||||
bl_label = "Push from Publish"
|
bl_label = "Push & Pull from Publish"
|
||||||
bl_description = """Push the current Task Layer to the published sync target"""
|
bl_description = """Push the current Task Layer to the published sync target"""
|
||||||
|
|
||||||
_temp_transfer_data = None
|
_temp_transfer_data = None
|
||||||
|
@ -59,7 +59,9 @@ class ASSETPIPE_PT_sync(bpy.types.Panel):
|
|||||||
|
|
||||||
staged = is_staged_publish(Path(bpy.data.filepath))
|
staged = is_staged_publish(Path(bpy.data.filepath))
|
||||||
sync_target_name = "Staged" if staged else "Active"
|
sync_target_name = "Staged" if staged else "Active"
|
||||||
layout.operator("assetpipe.sync_push", text=f"Push to {sync_target_name}", icon="TRIA_UP")
|
layout.operator(
|
||||||
|
"assetpipe.sync_push", text=f"Push & Pull from {sync_target_name}", icon="TRIA_UP"
|
||||||
|
)
|
||||||
layout.operator(
|
layout.operator(
|
||||||
"assetpipe.sync_pull",
|
"assetpipe.sync_pull",
|
||||||
text=f"Pull from {sync_target_name}",
|
text=f"Pull from {sync_target_name}",
|
||||||
|
Loading…
Reference in New Issue
Block a user