diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-11-18 23:30:43 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-11-18 23:35:06 +0300 |
commit | e9607f45d85df6df834a80f147b8c42ff12f56f2 (patch) | |
tree | eeea0e6c742f557798d3e8011bf84c8d806c0b12 /release/scripts/startup/bl_ui | |
parent | c126e27cdc8b28365a9d5f9fafc4d521d1eb83df (diff) |
GPencil: Automerge last drawn stroke with previous strokes
This option joins any stroke with an end near the actual stroke. Now it is not limited to the last stroke, any stroke in the same layer for the actual frame can be joined. The join can join two strokes drawing a third stroke.
If the end and the start of the result stroke are very small, the stroke is changed to be cyclic automatically.
There is a limit distance to join the stroke, if the distance is greater than this value, the strokes are not joined. Actually, a constant, threshold distance is used, but we could expose
as a parameter in the UI in the future.
The tool can be used with freehand drawing or with primitives.
Note: Great part of the patch is just a refactor of the old code to make it accessible and to keep code organized.
Reviewed By: mendio
Maniphest Tasks: T82377
Differential Revision: https://developer.blender.org/D9440
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 9dbb56e7e45..e0c28983544 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -657,6 +657,8 @@ class VIEW3D_HT_header(Header): sub.prop(tool_settings, "use_gpencil_weight_data_add", text="", icon='WPAINT_HLT') sub.separator(factor=0.4) sub.prop(tool_settings, "use_gpencil_draw_additive", text="", icon='FREEZE') + sub.separator(factor=0.4) + sub.prop(tool_settings, "use_gpencil_automerge_strokes", text="") # Select mode for Editing if gpd.use_stroke_edit_mode: |