diff options
author | Jacques Lucke <mail@jlucke.com> | 2018-10-16 12:48:12 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2018-10-16 12:48:12 +0300 |
commit | eba1b0487c8e24c13b1b8c134710a6c65875100c (patch) | |
tree | a107af8182f7dd039e0df358d4d31a1ecc4cf53e /source/blender/editors/render | |
parent | 09cd651bb7e59044cbcd0664e8b1064cb37734ed (diff) |
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
Diffstat (limited to 'source/blender/editors/render')
0 files changed, 0 insertions, 0 deletions