diff options
author | Hans Goudey <h.goudey@me.com> | 2020-06-17 21:43:48 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-06-17 21:43:48 +0300 |
commit | d6ef9c157ae32c0e7251ce53204fc7f1dfff193e (patch) | |
tree | aa7f023a3550c60d899577a0d35fb7f3d6326c4d /source | |
parent | bcb2b8ab576cbaf4663d9cc8690d40353f2f2651 (diff) |
UI: Solve crash with move to index in modifier menu
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/modifiers/intern/MOD_ui_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_ui_common.c b/source/blender/modifiers/intern/MOD_ui_common.c index 67c89d6dc3e..0d2c9e4af2c 100644 --- a/source/blender/modifiers/intern/MOD_ui_common.c +++ b/source/blender/modifiers/intern/MOD_ui_common.c @@ -276,7 +276,7 @@ static void modifier_ops_extra_draw(bContext *C, uiLayout *layout, void *md_v) IFACE_("Move to First"), ICON_TRIA_UP, NULL, - WM_OP_EXEC_DEFAULT, + WM_OP_INVOKE_DEFAULT, 0, &op_ptr); RNA_int_set(&op_ptr, "index", 0); @@ -291,7 +291,7 @@ static void modifier_ops_extra_draw(bContext *C, uiLayout *layout, void *md_v) IFACE_("Move to Last"), ICON_TRIA_DOWN, NULL, - WM_OP_EXEC_DEFAULT, + WM_OP_INVOKE_DEFAULT, 0, &op_ptr); RNA_int_set(&op_ptr, "index", BLI_listbase_count(&ob->modifiers) - 1); |