[Bf-blender-cvs] [d6ef9c157ae] master: UI: Solve crash with move to index in modifier menu

Hans Goudey noreply at git.blender.org
Wed Jun 17 20:44:02 CEST 2020


Commit: d6ef9c157ae32c0e7251ce53204fc7f1dfff193e
Author: Hans Goudey
Date:   Wed Jun 17 14:43:48 2020 -0400
Branches: master
https://developer.blender.org/rBd6ef9c157ae32c0e7251ce53204fc7f1dfff193e

UI: Solve crash with move to index in modifier menu

===================================================================

M	source/blender/modifiers/intern/MOD_ui_common.c

===================================================================

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);



More information about the Bf-blender-cvs mailing list