Cleanup: redundant call to WM_modalkeymap_find

This commit is contained in:
Campbell Barton 2021-01-04 15:30:24 +11:00
parent a5081896bc
commit 82bbe257ee
1 changed files with 1 additions and 3 deletions

View File

@ -698,9 +698,7 @@ wmKeyMap *transform_modal_keymap(wmKeyConfig *keyconf)
{0, NULL, 0, NULL, NULL},
};
wmKeyMap *keymap = WM_modalkeymap_find(keyconf, "Transform Modal Map");
keymap = WM_modalkeymap_ensure(keyconf, "Transform Modal Map", modal_items);
wmKeyMap *keymap = WM_modalkeymap_ensure(keyconf, "Transform Modal Map", modal_items);
keymap->poll_modal_item = transform_modal_item_poll;
/* Default modal map values: