diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-10-14 09:29:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-10-14 09:30:15 +0300 |
commit | 7cd9926fd876c457fce925f68e3d641015c2f978 (patch) | |
tree | 7ce0faacf1b8f1127243f3236c9dfba100133574 /source/blender/editors/object | |
parent | 61fe8e8acaf8187c70445a1d5b8818c31977aebb (diff) |
Cleanup: use const for events
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_add.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c index 74da6817185..a0bb5ce3fc9 100644 --- a/source/blender/editors/object/object_add.c +++ b/source/blender/editors/object/object_add.c @@ -979,7 +979,7 @@ static int group_instance_add_exec(bContext *C, wmOperator *op) group = (Group *)BKE_libblock_find_name(ID_GR, name); if (0 == RNA_struct_property_is_set(op->ptr, "location")) { - wmEvent *event = CTX_wm_window(C)->eventstate; + const wmEvent *event = CTX_wm_window(C)->eventstate; ARegion *ar = CTX_wm_region(C); const int mval[2] = {event->x - ar->winrct.xmin, event->y - ar->winrct.ymin}; |