[Bf-blender-cvs] [9678bc3a29f] blender2.8: Correct extrude shortcut and description

Campbell Barton noreply at git.blender.org
Tue Oct 2 10:52:00 CEST 2018


Commit: 9678bc3a29f715ab16d18ded727416a13b01ddf2
Author: Campbell Barton
Date:   Tue Oct 2 18:48:28 2018 +1000
Branches: blender2.8
https://developer.blender.org/rB9678bc3a29f715ab16d18ded727416a13b01ddf2

Correct extrude shortcut and description

To get the toolbar Key binding, the same operator needs to be
referenced from the tool.

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

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 8abf988c946..4cc4779e9c2 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -686,9 +686,14 @@ class _defs_edit_mesh:
             layout.prop(props, "axis_type", expand=True)
         return dict(
             text="Extrude Region",
+            # The operator description isn't useful in this case, give our own.
+            description=(
+                "Extrude freely or along an axis"
+            ),
             icon="ops.mesh.extrude_region_move",
             widget="MESH_GGT_extrude",
-            operator="mesh.extrude_context_move",
+            # Important to use same operator as 'E' key.
+            operator="view3d.edit_mesh_extrude_move_normal",
             keymap=(
                 ("mesh.extrude_context_move",
                  dict(TRANSFORM_OT_translate=dict(release_confirm=True)),



More information about the Bf-blender-cvs mailing list