From 96f756d4b377521c118ee3b21dd2087eea79d6a5 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Wed, 30 Oct 2013 00:37:13 +0000 Subject: Lasso select tool for masking in sculpting. Initial code, non optimized for now. Used to be ultra terrible but with threading (openmp) there is slightly better performance and is ready for testing. To use press shift-ctrl-lclick. Still no ability to remove mask. Coming soon. Also make box selection threaded (openmp) and comment fix. --- source/blender/editors/sculpt_paint/paint_ops.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors/sculpt_paint/paint_ops.c') diff --git a/source/blender/editors/sculpt_paint/paint_ops.c b/source/blender/editors/sculpt_paint/paint_ops.c index 8b038973831..03c063692c6 100644 --- a/source/blender/editors/sculpt_paint/paint_ops.c +++ b/source/blender/editors/sculpt_paint/paint_ops.c @@ -987,6 +987,7 @@ void ED_operatortypes_paint(void) /* paint masking */ WM_operatortype_append(PAINT_OT_mask_flood_fill); + WM_operatortype_append(PAINT_OT_mask_lasso_gesture); } @@ -1149,6 +1150,8 @@ void ED_keymap_paint(wmKeyConfig *keyconf) kmi = WM_keymap_add_item(keymap, "PAINT_OT_mask_flood_fill", IKEY, KM_PRESS, KM_CTRL, 0); RNA_enum_set(kmi->ptr, "mode", PAINT_MASK_INVERT); + kmi = WM_keymap_add_item(keymap, "PAINT_OT_mask_lasso_gesture", LEFTMOUSE, KM_PRESS, KM_CTRL | KM_SHIFT, 0); + /* Toggle dynamic topology */ WM_keymap_add_item(keymap, "SCULPT_OT_dynamic_topology_toggle", DKEY, KM_PRESS, KM_CTRL, 0); -- cgit v1.2.3