GPencil: New interpolate strokes operators
[blender.git] / source / blender / editors / gpencil / gpencil_ops.c
index ae1c5554521881bfe66f747c95e47e8bd2aed738..e5d5bdbc831ad1b5d80b82cf366fee593a554cd8 100644 (file)
@@ -79,7 +79,6 @@ static void ed_keymap_gpencil_general(wmKeyConfig *keyconf)
        RNA_enum_set(kmi->ptr, "mode", GP_PAINTMODE_ERASER);
        RNA_boolean_set(kmi->ptr, "wait_for_input", false);
        
-       
        /* Tablet Mappings for Drawing ------------------ */
        /* For now, only support direct drawing using the eraser, as most users using a tablet
         * may still want to use that as their primary pointing device!
@@ -144,7 +143,10 @@ static void ed_keymap_gpencil_editing(wmKeyConfig *keyconf)
        kmi = WM_keymap_add_item(keymap, "WM_OT_radial_control", FKEY, KM_PRESS, KM_CTRL, 0);
        RNA_string_set(kmi->ptr, "data_path_primary", "user_preferences.edit.grease_pencil_eraser_radius");
        
-       
+       /* Interpolation */
+       WM_keymap_add_item(keymap, "GPENCIL_OT_interpolate", EKEY, KM_PRESS, KM_CTRL, 0);
+       WM_keymap_add_item(keymap, "GPENCIL_OT_interpolate_sequence", EKEY, KM_PRESS, KM_SHIFT | KM_CTRL, 0);
+
        /* Sculpting ------------------------------------- */
        
        /* Brush-Based Editing:
@@ -433,6 +435,10 @@ void ED_operatortypes_gpencil(void)
        WM_operatortype_append(GPENCIL_OT_brush_select);
 
        /* Editing (Time) --------------- */
+       
+       /* Interpolation */
+       WM_operatortype_append(GPENCIL_OT_interpolate);
+       WM_operatortype_append(GPENCIL_OT_interpolate_sequence);
 }
 
 void ED_operatormacros_gpencil(void)