From e037e8c8d4c563991700e6953e1485481550e86b Mon Sep 17 00:00:00 2001 From: Kayla Man Date: Wed, 19 Jun 2024 16:43:12 +0800 Subject: [PATCH] fix the TypeError found in the scriptmenu when launching maya 2025 --- client/ayon_core/vendor/python/scriptsmenu/launchformaya.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/ayon_core/vendor/python/scriptsmenu/launchformaya.py b/client/ayon_core/vendor/python/scriptsmenu/launchformaya.py index 01880b94d7..c8b0c777de 100644 --- a/client/ayon_core/vendor/python/scriptsmenu/launchformaya.py +++ b/client/ayon_core/vendor/python/scriptsmenu/launchformaya.py @@ -130,7 +130,10 @@ def main(title="Scripts", parent=None, objectName=None): # Register control + shift callback to add to shelf (maya behavior) modifiers = QtCore.Qt.ControlModifier | QtCore.Qt.ShiftModifier - menu.register_callback(int(modifiers), to_shelf) + if int(cmds.about(version=True)) <= 2025: + modifiers = int(modifiers) + + menu.register_callback(modifiers, to_shelf) menu.register_callback(0, register_repeat_last)