code cleanup: quiet some warnings and style

This commit is contained in:
2013-04-05 15:45:10 +00:00
parent 12981b0048
commit cf76d73b83
5 changed files with 13 additions and 8 deletions

View File

@@ -964,10 +964,12 @@ static wmKeyMapItem *wm_keymap_item_find(
RNA_pointer_create(NULL, ot->srna, properties_default, &opptr);
if (WM_operator_properties_default(&opptr, true) ||
(ot->prop && RNA_property_is_set(&opptr, ot->prop))) {
(ot->prop && RNA_property_is_set(&opptr, ot->prop)))
{
/* for operator that has enum menu, unset it so it always matches */
if (ot->prop)
if (ot->prop) {
RNA_property_unset(&opptr, ot->prop);
}
found = wm_keymap_item_find_props(C, opname, opcontext, properties_default, 0, hotkey, keymap_r);
}