Fix #28202: deactivating keymap items not saving properly.
[blender.git] / source / blender / windowmanager / intern / wm_keymap.c
index 2dfe4d8ccdc57d9ace36a507bd85b3ec6f3d083e..6887aa4c7173e67cc0c56aa4cc5a8175422a0b83 100644 (file)
@@ -106,6 +106,9 @@ static int wm_keymap_item_equals_result(wmKeyMapItem *a, wmKeyMapItem *b)
             (a->ptr && b->ptr && IDP_EqualsProperties(a->ptr->data, b->ptr->data))))
                return 0;
        
+       if((a->flag & KMI_INACTIVE) != (b->flag & KMI_INACTIVE))
+               return 0;
+       
        return (a->propvalue == b->propvalue);
 }