Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-03-01 03:59:21 +0300
committerCampbell Barton <campbell@blender.org>2022-03-01 04:21:27 +0300
commit8a8424021c6bd7666375b5d93804c2693fab4a0d (patch)
tree7df04308ecfabcaf2524526e8fc3f632c01dcf86 /source/blender/makesrna/intern/rna_wm.c
parenteb0f8317e231c4a02940d0269125a96a47e94c7e (diff)
Cleanup: move Event.is_repeat & is_direction_inverted to flags
Use a flag for events to avoid adding struct members every time a new kind of tag is needed - so events remain small. This also simplifies copying settings as flags can be copied at once with a mask.
Diffstat (limited to 'source/blender/makesrna/intern/rna_wm.c')
-rw-r--r--source/blender/makesrna/intern/rna_wm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_wm.c b/source/blender/makesrna/intern/rna_wm.c
index 16d1dc0e93f..ae688846b95 100644
--- a/source/blender/makesrna/intern/rna_wm.c
+++ b/source/blender/makesrna/intern/rna_wm.c
@@ -668,7 +668,7 @@ static int rna_Event_unicode_length(PointerRNA *ptr)
static bool rna_Event_is_repeat_get(PointerRNA *ptr)
{
const wmEvent *event = ptr->data;
- return event->is_repeat;
+ return (event->flag & WM_EVENT_IS_REPEAT) != 0;
}
static float rna_Event_pressure_get(PointerRNA *ptr)