[Bf-blender-cvs] [95cbb70cf70] blender2.8: Tool System: add shear and to-sphere tools

William Reynish noreply at git.blender.org
Tue Aug 28 12:39:00 CEST 2018


Commit: 95cbb70cf7005b1039a83ce8a6ecc284389f88dc
Author: William Reynish
Date:   Tue Aug 28 20:41:48 2018 +1000
Branches: blender2.8
https://developer.blender.org/rB95cbb70cf7005b1039a83ce8a6ecc284389f88dc

Tool System: add shear and to-sphere tools

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

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 4224ee02910..fbc525aae7c 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -755,6 +755,30 @@ class _defs_edit_mesh:
             ),
         )
 
+    @ToolDef.from_fn
+    def shear():
+        return dict(
+            text="Shear",
+            icon="ops.transform.shear",
+            widget=None,
+            keymap=(
+                ("transform.shear", dict(release_confirm=True),
+                 dict(type='ACTIONMOUSE', value='PRESS')),
+            ),
+        )
+
+    @ToolDef.from_fn
+    def tosphere():
+        return dict(
+            text="To Sphere",
+            icon="ops.transform.tosphere",
+            widget=None,
+            keymap=(
+                ("transform.tosphere", dict(release_confirm=True),
+                 dict(type='ACTIONMOUSE', value='PRESS')),
+            ),
+        )
+
     @ToolDef.from_fn
     def shrink_fatten():
         def draw_settings(context, layout, tool):
@@ -1647,6 +1671,10 @@ class VIEW3D_PT_tools_active(ToolSelectPanelHelper, Panel):
                 _defs_edit_mesh.shrink_fatten,
                 _defs_edit_mesh.push_pull,
             ),
+            (
+                _defs_edit_mesh.shear,
+                _defs_edit_mesh.tosphere,
+            ),
             (
                 _defs_edit_mesh.rip_region,
                 _defs_edit_mesh.rip_edge,



More information about the Bf-blender-cvs mailing list