Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-10-02 11:48:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-10-02 11:51:43 +0300
commit9678bc3a29f715ab16d18ded727416a13b01ddf2 (patch)
tree78f91235487b03bb7a1e380158915e1236758d05 /release
parent03b8d6ce548eea460aee6e9cc5d22683995438a2 (diff)
Correct extrude shortcut and description
To get the toolbar Key binding, the same operator needs to be referenced from the tool.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_toolsystem_toolbar.py7
1 files changed, 6 insertions, 1 deletions
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)),