diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-05 19:45:10 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-05 19:45:10 +0400 |
commit | cf76d73b8386242d7f655974837d7843c774b36c (patch) | |
tree | 5a31e591caf725a1b00664b789716b0e35cb1406 /source/blender/windowmanager/intern/wm_keymap.c | |
parent | 12981b004891aa6dbd2334a4c732ba38c1b0c349 (diff) |
code cleanup: quiet some warnings and style
Diffstat (limited to 'source/blender/windowmanager/intern/wm_keymap.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_keymap.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_keymap.c b/source/blender/windowmanager/intern/wm_keymap.c index aa9af4af154..f06bae1d084 100644 --- a/source/blender/windowmanager/intern/wm_keymap.c +++ b/source/blender/windowmanager/intern/wm_keymap.c @@ -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); } |