mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
add publish comment
This commit is contained in:
parent
2d8034ae77
commit
a4f4638065
1 changed files with 14 additions and 1 deletions
|
|
@ -687,7 +687,20 @@ def self_publish():
|
|||
if not node_path:
|
||||
continue
|
||||
|
||||
instance["active"] = current_node == node_path
|
||||
active = current_node == node_path
|
||||
if not active:
|
||||
continue
|
||||
|
||||
instance["active"] = active
|
||||
|
||||
result, comment = hou.ui.readInput(
|
||||
"Add Publish Note",
|
||||
buttons=("Ok", "Cancel"),
|
||||
title="Publish Note",
|
||||
close_choice=1
|
||||
)
|
||||
if not result:
|
||||
instance.data["comment"] = comment
|
||||
|
||||
context.save_changes()
|
||||
publisher_show_and_publish()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue