[Bf-blender-cvs] [f3f309c7f8e] blender2.8: Tool System: inset & shrink/fatten options

Campbell Barton noreply at git.blender.org
Fri May 11 20:25:33 CEST 2018


Commit: f3f309c7f8e3f9ae3d49c0fb15a641bcb9159288
Author: Campbell Barton
Date:   Fri May 11 20:23:29 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBf3f309c7f8e3f9ae3d49c0fb15a641bcb9159288

Tool System: inset & shrink/fatten options

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

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 edbf89bebfa..36abc80716c 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -364,6 +364,14 @@ class _defs_edit_mesh:
 
     @ToolDef.from_fn
     def inset():
+        def draw_settings(context, layout):
+            wm = context.window_manager
+            props = wm.operator_properties_last("mesh.inset")
+            layout.prop(props, "use_outset")
+            layout.prop(props, "use_individual")
+            layout.prop(props, "use_even_offset")
+            layout.prop(props, "use_relative_offset")
+
         return dict(
             text="Inset Faces",
             icon="ops.mesh.inset",
@@ -372,6 +380,7 @@ class _defs_edit_mesh:
                 ("mesh.inset", dict(release_confirm=True),
                  dict(type='ACTIONMOUSE', value='PRESS')),
             ),
+            draw_settings=draw_settings,
         )
 
     @ToolDef.from_fn
@@ -476,6 +485,11 @@ class _defs_edit_mesh:
 
     @ToolDef.from_fn
     def shrink_fatten():
+        def draw_settings(context, layout):
+            wm = context.window_manager
+            props = wm.operator_properties_last("transform.shrink_fatten")
+            layout.prop(props, "use_even_offset")
+
         return dict(
             text="Shrink/Fatten",
             icon="ops.transform.shrink_fatten",
@@ -484,6 +498,7 @@ class _defs_edit_mesh:
                 ("transform.shrink_fatten", dict(release_confirm=True),
                  dict(type='ACTIONMOUSE', value='PRESS')),
             ),
+            draw_settings=draw_settings,
         )
 
     @ToolDef.from_fn



More information about the Bf-blender-cvs mailing list