mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #656 from ynput/bugfix/implement_backward_compatibility_for_version_up_workfile
Maya: Implement backward compatibility for version up workfile
This commit is contained in:
commit
77f45732c9
1 changed files with 11 additions and 7 deletions
|
|
@ -75,13 +75,17 @@ def install(project_settings):
|
|||
|
||||
cmds.setParent("..", menu=True)
|
||||
|
||||
if project_settings["core"]["tools"]["ayon_menu"].get(
|
||||
"version_up_current_workfile"):
|
||||
cmds.menuItem(divider=True)
|
||||
cmds.menuItem(
|
||||
"Version Up Workfile",
|
||||
command=lambda *args: version_up_current_workfile()
|
||||
)
|
||||
try:
|
||||
if project_settings["core"]["tools"]["ayon_menu"].get(
|
||||
"version_up_current_workfile"):
|
||||
cmds.menuItem(divider=True)
|
||||
cmds.menuItem(
|
||||
"Version Up Workfile",
|
||||
command=lambda *args: version_up_current_workfile()
|
||||
)
|
||||
except KeyError:
|
||||
print("Version Up Workfile setting not found in "
|
||||
"Core Settings. Please update Core Addon")
|
||||
|
||||
cmds.menuItem(divider=True)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue