remove the global scope add_scripts_menu call from menu.py and add it in the install function of pipeline.py

This commit is contained in:
Thomas Fricard 2022-07-04 12:50:39 +02:00
parent eac2793754
commit 4781fc56b4
2 changed files with 2 additions and 4 deletions

View file

@ -162,11 +162,8 @@ def add_scripts_menu():
log.warning("Skipping studio menu, no definition found.")
return
# run the launcher for Maya menu
# run the launcher for Hiero menu
studio_menu = launchforhiero.main(title=_menu.title())
# apply configuration
studio_menu.build_from_configuration(studio_menu, config)
add_scripts_menu()

View file

@ -48,6 +48,7 @@ def install():
# install menu
menu.menu_install()
menu.add_scripts_menu()
# register hiero events
events.register_hiero_events()