[Bf-blender-cvs] [4c2ac2a02fe] blender2.8: UI: show options for smooth and randomize

Campbell Barton noreply at git.blender.org
Thu Sep 13 01:16:11 CEST 2018


Commit: 4c2ac2a02fec5bc01d28622a6a02dcce9530ada6
Author: Campbell Barton
Date:   Thu Sep 13 09:23:24 2018 +1000
Branches: blender2.8
https://developer.blender.org/rB4c2ac2a02fec5bc01d28622a6a02dcce9530ada6

UI: show options for smooth and randomize

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

M	release/scripts/startup/bl_ui/space_toolsystem_toolbar.py

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

diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index f304d179d5f..5293cb0bae3 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -773,6 +773,9 @@ class _defs_edit_mesh:
 
     @ToolDef.from_fn
     def vertex_smooth():
+        def draw_settings(context, layout, tool):
+            props = tool.operator_properties("mesh.vertices_smooth")
+            layout.prop(props, "repeat")
         return dict(
             text="Smooth",
             icon="ops.mesh.vertices_smooth",
@@ -782,10 +785,16 @@ class _defs_edit_mesh:
                 ("mesh.vertices_smooth", dict(factor=0.0),
                  dict(type='ACTIONMOUSE', value='PRESS')),
             ),
+            draw_settings=draw_settings,
         )
 
     @ToolDef.from_fn
     def vertex_randomize():
+        def draw_settings(context, layout, tool):
+            props = tool.operator_properties("transform.vertex_random")
+            layout.prop(props, "uniform")
+            layout.prop(props, "normal")
+            layout.prop(props, "seed")
         return dict(
             text="Randomize",
             icon="ops.transform.vertex_random",
@@ -795,6 +804,7 @@ class _defs_edit_mesh:
                 ("transform.vertex_random", dict(offset=0.0),
                  dict(type='ACTIONMOUSE', value='PRESS')),
             ),
+            draw_settings=draw_settings,
         )
 
     @ToolDef.from_fn



More information about the Bf-blender-cvs mailing list