Blender Git Commit Log

Git Commits -> Revision eba1b04

Revision eba1b04 by Jacques Lucke (master)
October 16, 2018, 09:48 (GMT)
Event System: don't invoke operator that should only be executed

Problem was that the event was not `NULL` even though the `context` is `WM_OP_EXEC_*`.
I noticed this problem when dropping .blend files into Blender.
Instead of only executing `WM_OT_open_mainfile`, it was invoked (opening a file selector).

The `wm_operator_invoke`, which also executes operators, always invokes operators when `event != NULL`. So setting `event` to `NULL` tells `wm_operator_invoke` not to invoke but to execute the operator.

Reviewers: brecht

Differential Revision: https://developer.blender.org/D3799

Commit Details:

Full Hash: eba1b0487c8e24c13b1b8c134710a6c65875100c
Parent Commit: 09cd651
Lines Changed: +13, -1

1 Modified Path:

/source/blender/windowmanager/intern/wm_event_system.c (+13, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021