forked from bartvdbraak/blender
Fix #28202: deactivating keymap items not saving properly.
This commit is contained in:
parent
551e8bc72c
commit
270ed82c7b
@ -1746,6 +1746,7 @@ static void rna_def_keyconfig(BlenderRNA *brna)
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", KMI_INACTIVE);
|
||||
RNA_def_property_ui_text(prop, "Active", "Activate or deactivate item");
|
||||
RNA_def_property_ui_icon(prop, ICON_CHECKBOX_DEHLT, 1);
|
||||
RNA_def_property_update(prop, 0, "rna_KeyMapItem_update");
|
||||
|
||||
prop= RNA_def_property(srna, "is_user_modified", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", KMI_USER_MODIFIED);
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user