Fix #130293: Grease Pencil: Edit mode Join operator splits points

When the `Join` operator was added to Grease Pencil v3 the behavior when
joining points was changed. The selected point would now be split from the
existing strokes and put into a new one.
This behavior is often undesirable, leading to multiple user reporting it as a
bug  #130293, #141368, #131036, #132201, #136144 and #144300.

This PR adds a new mode, `Join Strokes` that behaves the same as legacy
grease pencil, and sets it as default. This PR also renames the existing modes
to `SplitAndCopy`, `SplitPoints` to better indicate the expected behavior.

Pull Request: https://projects.blender.org/blender/blender/pulls/144666
This commit is contained in:
Casey Bianco-Davis
2025-08-27 14:21:11 +02:00
committed by Falk David
parent 193e22ee7e
commit fad44198a3
2 changed files with 50 additions and 23 deletions

View File

@@ -4037,9 +4037,9 @@ def km_grease_pencil_edit_mode(params):
# Join selection
("grease_pencil.join_selection", {"type": 'J', "value": 'PRESS', "ctrl": True},
{"properties": [("type", 'JOIN')]}),
{"properties": [("type", 'JOINSTROKES')]}),
("grease_pencil.join_selection", {"type": 'J', "value": 'PRESS', "shift": True, "ctrl": True},
{"properties": [("type", 'JOINCOPY')]}),
{"properties": [("type", 'SPLITCOPY')]}),
("grease_pencil.duplicate_move", {"type": 'D', "value": 'PRESS', "shift": True}, None),