[Bf-blender-cvs] [f21d6c31874] blender2.8: Tool System: add curve extrude

Campbell Barton noreply at git.blender.org
Wed Aug 29 07:08:19 CEST 2018


Commit: f21d6c318740a8e13490667a4700e0eabd2e1fb5
Author: Campbell Barton
Date:   Wed Aug 29 15:14:41 2018 +1000
Branches: blender2.8
https://developer.blender.org/rBf21d6c318740a8e13490667a4700e0eabd2e1fb5

Tool System: add curve extrude

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

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 fc3293b42a1..bab751e496d 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -883,6 +883,19 @@ class _defs_edit_curve:
             draw_settings=draw_settings,
         )
 
+    @ToolDef.from_fn
+    def extrude():
+        return dict(
+            text="Extrude",
+            icon=None,
+            widget=None,
+            keymap=(
+                ("curve.extrude_move",
+                 dict(TRANSFORM_OT_translate=dict(release_confirm=True)),
+                 dict(type='EVT_TWEAK_A', value='ANY')),
+            ),
+        )
+
     @ToolDef.from_fn
     def extrude_cursor():
         return dict(
@@ -1698,7 +1711,10 @@ class VIEW3D_PT_tools_active(ToolSelectPanelHelper, Panel):
             *_tools_annotate,
             None,
             _defs_edit_curve.draw,
-            _defs_edit_curve.extrude_cursor,
+            (
+                _defs_edit_curve.extrude,
+                _defs_edit_curve.extrude_cursor,
+            )
         ],
         'PARTICLE': [
             _defs_view3d_generic.cursor,



More information about the Bf-blender-cvs mailing list