Page MenuHome

Add ability for operators to detect repeat execution
AbandonedPublic

Authored by Campbell Barton (campbellbarton) on Jan 19 2018, 6:14 AM.

Diff Detail

Repository
rB Blender
Branch
TEMP-T53786-FIX
Build Status
Buildable 1102
Build 1102: arc lint + arc unit

Event Timeline

LGTM, besides note below.

source/blender/windowmanager/intern/wm_event_system.c
808–810

butbutbut… Shouldn’t that flag only be set & cleared if repeat is True?

Unless I miss something here (only have half a brain available these days… ;) ).

Campbell Barton (campbellbarton) added inline comments.
source/blender/windowmanager/intern/wm_event_system.c
808–810

Two halves make a whole, thx for picking up on it!

(wasn't thinking I'd commit this patch, but after trying alternatives which aren't any better, it seems an OK-ish solution).

Campbell Barton (campbellbarton) abandoned this revision.

Committed rB0cddc7e300fd90cdc6dd8ca8dafca21e8ccfa8a9, also added is_repeat RNA so Python can access.