[Bf-blender-cvs] [d16599e] strand_editmode: Display basic brush properties in the toolbar for hair edit mode.
Lukas Tönne
noreply at git.blender.org
Mon Apr 20 14:23:36 CEST 2015
Commit: d16599ea0401d47e6c2751ed75253b857aa00b71
Author: Lukas Tönne
Date: Tue Dec 2 19:02:48 2014 +0100
Branches: strand_editmode
https://developer.blender.org/rBd16599ea0401d47e6c2751ed75253b857aa00b71
Display basic brush properties in the toolbar for hair edit mode.
===================================================================
M release/scripts/startup/bl_ui/space_view3d_toolbar.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index d5f64a7..402e06d 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -894,6 +894,21 @@ class VIEW3D_PT_tools_brush(Panel, View3DPaintPanel):
layout.prop(brush, "puff_mode", expand=True)
layout.prop(brush, "use_puff_volume")
+ # Hair Mode #
+
+ elif context.hair_edit_object and brush:
+ col = layout.column()
+
+ row = col.row(align=True)
+ self.prop_unified_size(row, context, brush, "size", slider=True, text="Radius")
+ self.prop_unified_size(row, context, brush, "use_pressure_size")
+
+ row = col.row(align=True)
+ self.prop_unified_strength(row, context, brush, "strength", text="Strength")
+ self.prop_unified_strength(row, context, brush, "use_pressure_strength")
+
+ col.prop(brush, "hair_tool", text="Tool")
+
# Sculpt Mode #
elif context.sculpt_object and brush:
More information about the Bf-blender-cvs
mailing list