diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-08-18 05:19:00 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-08-18 05:19:00 +0400 |
commit | a5da26f59d8cd820ca4d27a06028dd6aaee65784 (patch) | |
tree | 19bf8d39b29bff1b3f97c1476d93e8c29e77a151 /release | |
parent | 2d7305f12db9cd07c6c9e7cad565d48de7996aa9 (diff) |
2.5/Sculpt:
* Added UI for brush stroke. Contains for now spacing and smooth stroke
* Removed Sculpt UI for airbrush -- doesn't do anything in sculpt mode
* Improved smooth stroke by using float instead of int precision, so smooth stroke is even smoother now
Diffstat (limited to 'release')
-rw-r--r-- | release/ui/space_view3d_toolbar.py | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/release/ui/space_view3d_toolbar.py b/release/ui/space_view3d_toolbar.py index 1308791bdbc..be378cc46fe 100644 --- a/release/ui/space_view3d_toolbar.py +++ b/release/ui/space_view3d_toolbar.py @@ -341,7 +341,7 @@ class VIEW3D_PT_tools_brush(PaintPanel): row.itemR(brush, "strength_pressure", toggle=True, icon='ICON_BRUSH_DATA', text="") col = layout.column() - col.itemR(brush, "airbrush") + if brush.sculpt_tool != 'LAYER': col.itemR(brush, "anchored") @@ -421,6 +421,31 @@ class VIEW3D_PT_tools_brush(PaintPanel): row.itemR(brush, "strength", slider=True) row.itemR(brush, "strength_pressure", toggle=True, icon='ICON_BRUSH_DATA', text="") +class VIEW3D_PT_tools_brush_stroke(PaintPanel): + __label__ = "Stroke" + __default_closed__ = True + + def poll(self, context): + settings = self.paint_settings(context) + return (settings and settings.brush and context.sculpt_object) + + def draw(self, context): + settings = self.paint_settings(context) + brush = settings.brush + layout = self.layout + + layout.itemR(brush, "smooth_stroke") + col = layout.column() + col.active = brush.smooth_stroke + col.itemR(brush, "smooth_stroke_radius", text="Radius", slider=True) + col.itemR(brush, "smooth_stroke_factor", text="Factor", slider=True) + + layout.itemR(brush, "space") + col = layout.column() + col.active = brush.space + col.itemR(brush, "spacing", text="Distance", slider=True) + + class VIEW3D_PT_tools_brush_curve(PaintPanel): __label__ = "Curve" __default_closed__ = True @@ -602,6 +627,7 @@ bpy.types.register(VIEW3D_PT_tools_mballedit) bpy.types.register(VIEW3D_PT_tools_latticeedit) bpy.types.register(VIEW3D_PT_tools_posemode) bpy.types.register(VIEW3D_PT_tools_brush) +bpy.types.register(VIEW3D_PT_tools_brush_stroke) bpy.types.register(VIEW3D_PT_tools_brush_curve) bpy.types.register(VIEW3D_PT_sculpt_options) bpy.types.register(VIEW3D_PT_tools_vertexpaint) |