mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
fix menu callbacks to use lambda to avoid passing unexpected arguments
This commit is contained in:
parent
3486459520
commit
b02699018a
1 changed files with 3 additions and 3 deletions
|
|
@ -108,17 +108,17 @@ def install():
|
|||
|
||||
cmds.menuItem(
|
||||
"Reset Frame Range",
|
||||
command=reset_frame_range
|
||||
command=lambda *args: reset_frame_range()
|
||||
)
|
||||
|
||||
cmds.menuItem(
|
||||
"Reset Resolution",
|
||||
command=lib.reset_scene_resolution
|
||||
command=lambda *args: lib.reset_scene_resolution()
|
||||
)
|
||||
|
||||
cmds.menuItem(
|
||||
"Set Colorspace",
|
||||
command=lib.set_colorspace,
|
||||
command=lambda *args: lib.set_colorspace(),
|
||||
)
|
||||
cmds.menuItem(divider=True, parent=MENU_NAME)
|
||||
cmds.menuItem(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue