From 19089092739cce491888a7fa0e48e5e6a5fe64d8 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 19 Nov 2013 21:55:46 +0100 Subject: Sculpt Dynamic Topology: support collapsing edges without subdividing edges as well This allows you to choose between subdivide edges, collapse and both. Being able to only collapse edges can be useful to simplify meshes with accidentally introducing more detail. Reviewed By: psy-fi, carter2422 Differential Revision: http://developer.blender.org/D15 --- source/blender/editors/sculpt_paint/sculpt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/sculpt_paint') diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 6bd935af436..100eae97f91 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -3076,9 +3076,12 @@ static void sculpt_topology_update(Sculpt *sd, Object *ob, Brush *brush) /* Only act if some verts are inside the brush area */ if (totnode) { - PBVHTopologyUpdateMode mode = PBVH_Subdivide; + PBVHTopologyUpdateMode mode = 0; float location[3]; + if (sd->flags & SCULPT_DYNTOPO_SUBDIVIDE) + mode |= PBVH_Subdivide; + if ((sd->flags & SCULPT_DYNTOPO_COLLAPSE) || (brush->sculpt_tool == SCULPT_TOOL_SIMPLIFY)) { -- cgit v1.2.3