forked from bartvdbraak/blender
Some comment fixes, add new sculpt masking operators to menus
This commit is contained in:
parent
96f756d4b3
commit
33a0469630
@ -1445,6 +1445,9 @@ class VIEW3D_MT_hide_mask(Menu):
|
|||||||
props = layout.operator("paint.mask_flood_fill", text="Clear Mask")
|
props = layout.operator("paint.mask_flood_fill", text="Clear Mask")
|
||||||
props.mode = 'VALUE'
|
props.mode = 'VALUE'
|
||||||
props.value = 0
|
props.value = 0
|
||||||
|
|
||||||
|
props = layout.operator("view3d.select_border", text="Box Mask")
|
||||||
|
props = layout.operator("paint.mask_lasso_gesture", text="Lasso Mask")
|
||||||
|
|
||||||
|
|
||||||
# ********** Particle menu **********
|
# ********** Particle menu **********
|
||||||
|
@ -295,7 +295,7 @@ static int paint_mask_gesture_lasso_exec(bContext *C, wmOperator *op)
|
|||||||
pbvh = dm->getPBVH(ob, dm);
|
pbvh = dm->getPBVH(ob, dm);
|
||||||
ob->sculpt->pbvh = pbvh;
|
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);
|
BKE_pbvh_search_gather(pbvh, NULL, NULL, &nodes, &totnode);
|
||||||
|
|
||||||
sculpt_undo_push_begin("Mask lasso fill");
|
sculpt_undo_push_begin("Mask lasso fill");
|
||||||
|
Loading…
Reference in New Issue
Block a user