[Bf-blender-cvs] [aec662d] hair_immediate_fixes: Display basic brush properties in the toolbar for hair edit mode.

Lukas Tönne noreply at git.blender.org
Sat Dec 27 11:32:25 CET 2014


Commit: aec662d8f67b37126be37c532208d33097d5075a
Author: Lukas Tönne
Date:   Tue Dec 2 19:02:48 2014 +0100
Branches: hair_immediate_fixes
https://developer.blender.org/rBaec662d8f67b37126be37c532208d33097d5075a

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 52db614..9967da9 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -884,6 +884,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