From 0ef416722ebce6b87158429580a55cf729ebb020 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Sat, 22 Mar 2014 17:47:18 +0200 Subject: Flood fill for dyntopo constant detail mode. Nothing spectacular here, fill tools are easy. Just take the dyntopo code and repeat until nothing more to do. The tool can be located in the dyntopo panel when the dyntopo constant detail is on. Also added scale factor for constant detail. This may change when detail sampling gets in, I am not very happy with having two numbers here, still it will give some more control for now. --- release/scripts/startup/bl_ui/space_view3d_toolbar.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index e39d7198b25..4dc44342fbe 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -1239,12 +1239,19 @@ class VIEW3D_PT_sculpt_topology(Panel, View3DPaintPanel): col.active = context.sculpt_object.use_dynamic_topology_sculpting sub = col.column(align=True) sub.active = brush and brush.sculpt_tool not in ('MASK') - sub.prop(sculpt, "detail_size") + if (sculpt.detail_type_method == 'CONSTANT'): + row = sub.row(align=True) + row.prop(sculpt, "detail_size") + row.prop(sculpt, "constant_detail_scale") + else: + sub.prop(sculpt, "detail_size") sub.prop(sculpt, "detail_refine_method", text="") sub.prop(sculpt, "detail_type_method", text="") col.separator() col.prop(sculpt, "use_smooth_shading") col.operator("sculpt.optimize") + if (sculpt.detail_type_method == 'CONSTANT'): + col.operator("sculpt.detail_flood_fill") col.separator() col.prop(sculpt, "symmetrize_direction") col.operator("sculpt.symmetrize") -- cgit v1.2.3