diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-07-20 16:12:36 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-07-20 16:25:47 +0300 |
commit | b3b4b9fb8c255d2ec7cc7433ffcafef6311da6e9 (patch) | |
tree | 19ef8159594709ddbb031f4963b9bae5453faf96 /source/blender/windowmanager | |
parent | 72cbf966fb9194edbe6fa82cfd02540dc306184a (diff) |
Fix WITH_HEADLESS build.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index e2247b2adff..8b1cce27502 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -4569,7 +4569,11 @@ bool WM_window_modal_keymap_status_draw( continue; } int icon_mod[4]; +#ifdef WITH_HEADLESS + int icon = 0; +#else int icon = UI_icon_from_keymap_item(kmi, icon_mod); +#endif if (icon != 0) { for (int j = 0; j < ARRAY_SIZE(icon_mod) && icon_mod[j]; j++) { uiItemL(row, "", icon_mod[j]); |