diff options
author | Antonioya <blendergit@gmail.com> | 2019-06-30 22:03:24 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-06-30 22:06:10 +0300 |
commit | 789c6e94fb0dd711444a7cdd332291be979d5850 (patch) | |
tree | 04b230f0bd8c59ccffe3cdb0b67508e101546f81 /release | |
parent | 741967079c393a9eb6babd60c92a716fafa5d3e9 (diff) |
GPencil: Improve Cyclic operator to generate geometry
Now, when close a geometry with cyclic is possible generate new geometry for the gap.
The cyclic operator now supports multiframe edition too. Before only worked with active frame.
Also added the corresponding missing menu options and the new F keymap. All these features were missing, pending of the fix of the alpha glitches in stroke already done.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/presets/keyconfig/keymap_data/blender_default.py | 3 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py index 440916c209a..c888ce4402a 100644 --- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py +++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py @@ -3008,6 +3008,9 @@ def km_grease_pencil_stroke_edit_mode(params): ("gpencil.stroke_join", {"type": 'J', "value": 'PRESS', "ctrl": True}, None), ("gpencil.stroke_join", {"type": 'J', "value": 'PRESS', "shift": True, "ctrl": True}, {"properties": [("type", 'JOINCOPY')]}), + # Close strokes + ("gpencil.stroke_cyclical_set", {"type": 'F', "value": 'PRESS'}, + {"properties": [("type", 'CLOSE'), ("geometry", True)]}), # Copy + paset ("gpencil.copy", {"type": 'C', "value": 'PRESS', "ctrl": True}, None), ("gpencil.paste", {"type": 'V', "value": 'PRESS', "ctrl": True}, None), diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 10bd910db99..8630fe49696 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -4542,6 +4542,9 @@ class VIEW3D_MT_edit_gpencil(Menu): layout.operator_menu_enum("gpencil.stroke_separate", "mode", text="Separate...") layout.operator("gpencil.stroke_split", text="Split") layout.operator("gpencil.stroke_merge", text="Merge") + op = layout.operator("gpencil.stroke_cyclical_set", text="Close") + op.type = 'CLOSE' + op.geometry = True layout.operator_menu_enum("gpencil.stroke_join", "type", text="Join...") layout.operator("gpencil.stroke_flip", text="Flip Direction") @@ -6295,7 +6298,10 @@ class VIEW3D_MT_gpencil_edit_context_menu(Menu): layout.operator("gpencil.stroke_join", text="Join & Copy").type = 'JOINCOPY' layout.menu("GPENCIL_MT_separate", text="Separate") layout.operator("gpencil.stroke_split", text="Split") - + op = layout.operator("gpencil.stroke_cyclical_set", text="Close") + op.type = 'CLOSE' + op.geometry = True + layout.separator() layout.menu("VIEW3D_MT_mirror") |