Some comment fixes, add new sculpt masking operators to menus

This commit is contained in:
Antony Riakiotakis 2013-10-30 00:54:41 +00:00
parent 96f756d4b3
commit 33a0469630
2 changed files with 4 additions and 1 deletions

@ -1445,6 +1445,9 @@ class VIEW3D_MT_hide_mask(Menu):
props = layout.operator("paint.mask_flood_fill", text="Clear Mask")
props.mode = 'VALUE'
props.value = 0
props = layout.operator("view3d.select_border", text="Box Mask")
props = layout.operator("paint.mask_lasso_gesture", text="Lasso Mask")
# ********** Particle menu **********

@ -295,7 +295,7 @@ static int paint_mask_gesture_lasso_exec(bContext *C, wmOperator *op)
pbvh = dm->getPBVH(ob, dm);
ob->sculpt->pbvh = pbvh;
/* gather the nodes inside the lasso */
/* gather all nodes! (doing bounding box intersection is more work than needed) */
BKE_pbvh_search_gather(pbvh, NULL, NULL, &nodes, &totnode);
sculpt_undo_push_begin("Mask lasso fill");