mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
fix bug - disable other instances
This commit is contained in:
parent
a4f4638065
commit
e48090757f
1 changed files with 9 additions and 11 deletions
|
|
@ -688,19 +688,17 @@ def self_publish():
|
|||
continue
|
||||
|
||||
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
|
||||
if 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