face-paint mode operators were not ported from 2.4x yet hide/reveal/sel-swap
[blender.git] / source / blender / editors / sculpt_paint / paint_ops.c
index e86a068459eb1012ad98ac1956fd820d5677e4e7..979b6508b1629db20b04a37355f771e7938fd194 100644 (file)
@@ -224,6 +224,9 @@ void ED_operatortypes_paint(void)
        WM_operatortype_append(PAINT_OT_face_select_linked);
        WM_operatortype_append(PAINT_OT_face_select_linked_pick);
        WM_operatortype_append(PAINT_OT_face_select_all);
+       WM_operatortype_append(PAINT_OT_face_select_inverse);
+       WM_operatortype_append(PAINT_OT_face_select_hide);
+       WM_operatortype_append(PAINT_OT_face_select_reveal);
 }
 
 
@@ -414,7 +417,11 @@ void ED_keymap_paint(wmKeyConfig *keyconf)
        keymap->poll= facemask_paint_poll;
 
        WM_keymap_add_item(keymap, "PAINT_OT_face_select_all", AKEY, KM_PRESS, 0, 0);
+       WM_keymap_add_item(keymap, "PAINT_OT_face_select_inverse", IKEY, KM_PRESS, KM_CTRL, 0);
+       WM_keymap_add_item(keymap, "PAINT_OT_face_select_hide", HKEY, KM_PRESS, 0, 0);
+       RNA_boolean_set(WM_keymap_add_item(keymap, "PAINT_OT_face_select_hide", HKEY, KM_PRESS, KM_SHIFT, 0)->ptr, "unselected", 1);
+       WM_keymap_add_item(keymap, "PAINT_OT_face_select_reveal", HKEY, KM_PRESS, KM_ALT, 0);
+
        WM_keymap_add_item(keymap, "PAINT_OT_face_select_linked", LKEY, KM_PRESS, KM_CTRL, 0);
        WM_keymap_add_item(keymap, "PAINT_OT_face_select_linked_pick", LKEY, KM_PRESS, 0, 0);
-
 }