[Bf-blender-cvs] [97e2649] master: Slight cosmetic improvement on UI. Add eyedropper icon to detail sample operator and move it next to the detail slider

Antony Riakiotakis noreply at git.blender.org
Sat Mar 22 23:02:12 CET 2014


Commit: 97e26494eeacc62c04d805f7774b4159300e84b0
Author: Antony Riakiotakis
Date:   Sun Mar 23 00:01:46 2014 +0200
https://developer.blender.org/rB97e26494eeacc62c04d805f7774b4159300e84b0

Slight cosmetic improvement on UI. Add eyedropper icon to detail sample
operator and move it next to the detail slider

===================================================================

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 b67c8ef..7fb3ef8 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1240,7 +1240,9 @@ class VIEW3D_PT_sculpt_topology(Panel, View3DPaintPanel):
         sub = col.column(align=True)
         sub.active = brush and brush.sculpt_tool not in ('MASK')
         if (sculpt.detail_type_method == 'CONSTANT'):
-            sub.prop(sculpt, "constant_detail")
+            row = sub.row(align=True)
+            row.operator("sculpt.sample_detail_size", text="", icon='EYEDROPPER')
+            row.prop(sculpt, "constant_detail")
         else:
             sub.prop(sculpt, "detail_size")
         sub.prop(sculpt, "detail_refine_method", text="")
@@ -1249,7 +1251,6 @@ class VIEW3D_PT_sculpt_topology(Panel, View3DPaintPanel):
         col.prop(sculpt, "use_smooth_shading")
         col.operator("sculpt.optimize")
         if (sculpt.detail_type_method == 'CONSTANT'):
-           col.operator("sculpt.sample_detail_size")
            col.operator("sculpt.detail_flood_fill")
         col.separator()
         col.prop(sculpt, "symmetrize_direction")




More information about the Bf-blender-cvs mailing list