Fix T53752: Draw curve fails w/ stylus
authorPhilipp Oeser <info@graphics-engineer.com>
Wed, 10 Jan 2018 23:22:08 +0000 (10:22 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 10 Jan 2018 23:23:52 +0000 (10:23 +1100)
source/blender/editors/curve/curve_ops.c

index 4dfd4a5c0f0a16cfcc6d29fc938fe1fae22ec310..71cccdfa33d9d693c43c056edad3dd4da009f6f7 100644 (file)
@@ -241,6 +241,9 @@ void ED_keymap_curve(wmKeyConfig *keyconf)
        kmi = WM_keymap_add_item(keymap, "CURVE_OT_draw", ACTIONMOUSE, KM_PRESS, KM_SHIFT, 0);
        RNA_boolean_set(kmi->ptr, "wait_for_input", false);
 
+       kmi = WM_keymap_add_item(keymap, "CURVE_OT_draw", TABLET_STYLUS, KM_PRESS, KM_SHIFT, 0);
+       RNA_boolean_set(kmi->ptr, "wait_for_input", false);
+
        kmi = WM_keymap_add_item(keymap, "CURVE_OT_select_all", AKEY, KM_PRESS, 0, 0);
        RNA_enum_set(kmi->ptr, "action", SEL_TOGGLE);
        kmi = WM_keymap_add_item(keymap, "CURVE_OT_select_all", IKEY, KM_PRESS, KM_CTRL, 0);