[Bf-blender-cvs] [fcaf144] master: Mask: enable overlap detection by default, more compact buttons

Campbell Barton noreply at git.blender.org
Mon Feb 17 10:00:21 CET 2014


Commit: fcaf144a2a0b96f1ad5e65f42dc55717a42c65b5
Author: Campbell Barton
Date:   Mon Feb 17 19:59:13 2014 +1100
https://developer.blender.org/rBfcaf144a2a0b96f1ad5e65f42dc55717a42c65b5

Mask: enable overlap detection by default, more compact buttons

===================================================================

M	release/scripts/startup/bl_ui/properties_mask_common.py
M	source/blender/blenkernel/intern/mask.c
M	source/blender/bmesh/intern/bmesh_opdefines.c

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_mask_common.py b/release/scripts/startup/bl_ui/properties_mask_common.py
index 43d7699..c38173c 100644
--- a/release/scripts/startup/bl_ui/properties_mask_common.py
+++ b/release/scripts/startup/bl_ui/properties_mask_common.py
@@ -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():
diff --git a/source/blender/blenkernel/intern/mask.c b/source/blender/blenkernel/intern/mask.c
index fab7ebf..9b7886e 100644
--- a/source/blender/blenkernel/intern/mask.c
+++ b/source/blender/blenkernel/intern/mask.c
@@ -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;
 }
diff --git a/source/blender/bmesh/intern/bmesh_opdefines.c b/source/blender/bmesh/intern/bmesh_opdefines.c
index 0c8347f..fcd84ea 100644
--- a/source/blender/bmesh/intern/bmesh_opdefines.c
+++ b/source/blender/bmesh/intern/bmesh_opdefines.c
@@ -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,
 };




More information about the Bf-blender-cvs mailing list