Fix #112441: Restore Key Map Item does not restore the active property
`Restore item` button is not resetting `active` property when keyitem is registered as `inctive` by default. To fix this, clear `inactive` flag then use default keyitem's flag to correctly restore the keyitem. Pull Request: https://projects.blender.org/blender/blender/pulls/112497
This commit is contained in:
committed by
Pratik Borhade
parent
0d708cd68a
commit
bb39f4fa41
@@ -2067,7 +2067,7 @@ void WM_keymap_item_restore_to_default(wmWindowManager *wm, wmKeyMap *keymap, wm
|
||||
kmi->keymodifier = orig->keymodifier;
|
||||
kmi->maptype = orig->maptype;
|
||||
kmi->flag = (kmi->flag & ~(KMI_REPEAT_IGNORE | KMI_INACTIVE)) |
|
||||
(orig->flag & KMI_REPEAT_IGNORE);
|
||||
(orig->flag & (KMI_REPEAT_IGNORE | KMI_INACTIVE));
|
||||
|
||||
WM_keyconfig_update_tag(keymap, kmi);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user