diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-03-22 19:47:18 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-03-22 19:47:18 +0400 |
commit | 0ef416722ebce6b87158429580a55cf729ebb020 (patch) | |
tree | 0d8fc1fd22e499aa6c67decd5850db39c46e481e /release | |
parent | 1206faeb99ab6c09baeb39ce0ed89539621ccebe (diff) |
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.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 9 |
1 files changed, 8 insertions, 1 deletions
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") |