mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Merge pull request #669 from ynput/bugfix/'fix-KeyboardModifier'-not-found-in-maya-2025
Maya: Fix the scriptmenu error found during launch maya 2025
This commit is contained in:
commit
506c9975af
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue