Asset Pipeline: Improve Push Operator UI #199

Merged
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 6f7f8ea582 - Show all commits

View File

@ -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

View File

@ -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}",