Mask: enable overlap detection by default, more compact buttons

This commit is contained in:
2014-02-17 19:59:13 +11:00
parent 80f3956972
commit fcaf144a2a
3 changed files with 4 additions and 5 deletions

View File

@@ -108,8 +108,8 @@ class MASK_PT_layers:
layout.prop(active_layer, "falloff")
row = layout.row(align=True)
layout.prop(active_layer, "use_fill_overlap")
layout.prop(active_layer, "use_fill_holes")
row.prop(active_layer, "use_fill_overlap", text="Overlap")
row.prop(active_layer, "use_fill_holes", text="Holes")
class MASK_PT_spline():

View File

@@ -150,7 +150,7 @@ MaskLayer *BKE_mask_layer_new(Mask *mask, const char *name)
masklay->blend = MASK_BLEND_MERGE_ADD;
masklay->alpha = 1.0f;
masklay->flag = MASK_LAYERFLAG_FILL_DISCRETE;
masklay->flag = MASK_LAYERFLAG_FILL_DISCRETE | MASK_LAYERFLAG_FILL_OVERLAP;
return masklay;
}

View File

@@ -1034,8 +1034,7 @@ static BMOpDefine bmo_dissolve_degenerate_def = {
{{'\0'}},
},
/* slots_out */
{{"verts.out", BMO_OP_SLOT_ELEMENT_BUF, {BM_VERT}}, /* output vertices */
{{'\0'}}},
{{{'\0'}}},
bmo_dissolve_degenerate_exec,
BMO_OPTYPE_FLAG_UNTAN_MULTIRES | BMO_OPTYPE_FLAG_NORMALS_CALC | BMO_OPTYPE_FLAG_SELECT_FLUSH,
};