diff options
author | Antonioya <blendergit@gmail.com> | 2018-09-21 11:28:51 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-09-21 11:30:05 +0300 |
commit | 87bbf4439db557decf8a62461056dd433d67e883 (patch) | |
tree | bce65262f6e0f84ebcedc495668ab3b15a27bed3 /release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | |
parent | c71db48b27e69967e84487b981adb0b08183da27 (diff) |
GP: Fix select tools from toolbar error
The operators used were not the right ones.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_toolsystem_toolbar.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | 45 |
1 files changed, 42 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py index 42cc685d454..72886880cf3 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -1305,6 +1305,45 @@ class _defs_gpencil_edit: ) @ToolDef.from_fn + def border_select(): + return dict( + text="Select Border", + icon="ops.generic.select_border", + widget=None, + keymap=( + ("gpencil.select_border", + dict(), + dict(type='EVT_TWEAK_A', value='ANY')), + ), + ) + + @ToolDef.from_fn + def circle_select(): + return dict( + text="Select Circle", + icon="ops.generic.select_circle", + widget=None, + keymap=( + ("gpencil.select_circle", + dict(), + dict(type='EVT_TWEAK_A', value='ANY')), + ), + ) + + @ToolDef.from_fn + def lasso_select(): + return dict( + text="Select Lasso", + icon="ops.generic.select_lasso", + widget=None, + keymap=( + ("gpencil.select_lasso", + dict(), + dict(type='EVT_TWEAK_A', value='ANY')), + ), + ) + + @ToolDef.from_fn def mirror(): return dict( text="Mirror", @@ -1819,9 +1858,9 @@ class VIEW3D_PT_tools_active(ToolSelectPanelHelper, Panel): ], 'GPENCIL_EDIT': [ _defs_view3d_generic.cursor, - *_tools_select, - None, - *_tools_transform, + _defs_gpencil_edit.border_select, + _defs_gpencil_edit.circle_select, + _defs_gpencil_edit.lasso_select, None, _defs_gpencil_edit.bend, _defs_gpencil_edit.mirror, |