Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_keymap.c
| Context not available. | |||||
| /* add item */ | /* add item */ | ||||
| if (kmdi->add_item) { | if (kmdi->add_item) { | ||||
| /* Do not re-add an already existing keymap item! See T42088. */ | |||||
| /* We seek only for exact copy here! See T42137. */ | |||||
| kmi_add = wm_keymap_find_item_equals(km, kmdi->add_item); | |||||
| /* only if nothing to remove or item to remove found */ | /* only if nothing to remove or item to remove found */ | ||||
| if (!kmi_add && (!kmdi->remove_item || kmi_remove)) { | if (!kmdi->remove_item || kmi_remove) { | ||||
| kmi_add = wm_keymap_item_copy(kmdi->add_item); | kmi_add = wm_keymap_item_copy(kmdi->add_item); | ||||
| kmi_add->flag |= KMI_USER_MODIFIED; | kmi_add->flag |= KMI_USER_MODIFIED; | ||||
| Context not available. | |||||