Revert "Revert "Fix #112441: Restore Key Map Item does not restore the active property""

This reverts commit 0f36ac4e66.

This revert was only done for testing and wasn't ment to be pushed.
This commit is contained in:
Campbell Barton
2023-10-29 20:08:39 +11:00
parent 88f63c36db
commit dffee8b323

View File

@@ -2107,7 +2107,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);
}